-
-
Notifications
You must be signed in to change notification settings - Fork 405
[skip changelog] Update release process #1148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e5e454d
[skip changelog] Ditch goreleaser in favor of a new release process
silvanocerza 1ca9531
[skip changelog] Fix version output test
silvanocerza f829281
[skip changelog] Fix some workflows issues
silvanocerza 584c3f5
[skip changelog] Fix panic when running integration tests
silvanocerza b5cd52c
[skip changelog] Remove extra chars from package name prefix
silvanocerza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,28 @@ jobs: | |
create-release-artifacts: | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: arduino/arduino-cli:builder-1 | ||
volumes: | ||
# cache go dependencies across pipeline's steps | ||
- ${{ github.workspace }}/go:/go | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create changelog | ||
uses: arduino/[email protected] | ||
with: | ||
tag-regex: '^[0-9]+\.[0-9]+\.[0-9]+$' | ||
filter-regex: '^\[(skip|changelog)[ ,-](skip|changelog)\].*' | ||
case-insensitive-regex: true | ||
changelog-file-path: "dist/CHANGELOG.md" | ||
|
||
- name: Install Taskfile | ||
uses: arduino/actions/setup-taskfile@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
version: 3.x | ||
|
||
- name: Build | ||
run: goreleaser | ||
run: task dist:all | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
|
@@ -72,14 +80,14 @@ jobs: | |
- name: Re-package binary and update checksum | ||
# This step performs the following: | ||
# 1. Repackage the signed binary replaced in place by Gon (ignoring the output zip file) | ||
# 2. Recalculate package checksum and replace it in the goreleaser nnnnnn-checksums.txt file | ||
# 2. Recalculate package checksum and replace it in the nnnnnn-checksums.txt file | ||
run: | | ||
# GitHub's upload/download-artifact@v1 actions don't preserve file permissions, | ||
# so we need to add execution permission back until @v2 actions are released. | ||
chmod +x dist/arduino_cli_osx_darwin_amd64/arduino-cli | ||
chmod +x dist/arduino-cli_osx_darwin_amd64/arduino-cli | ||
TAG=${GITHUB_REF/refs\/tags\//} | ||
tar -czvf dist/arduino-cli_${TAG}_macOS_64bit.tar.gz \ | ||
-C dist/arduino_cli_osx_darwin_amd64/ arduino-cli \ | ||
-C dist/arduino-cli_osx_darwin_amd64/ arduino-cli \ | ||
-C ../../ LICENSE.txt | ||
CLI_CHECKSUM=$(shasum -a 256 dist/arduino-cli_${TAG}_macOS_64bit.tar.gz | cut -d " " -f 1) | ||
perl -pi -w -e "s/.*arduino-cli_${TAG}_macOS_64bit.tar.gz/${CLI_CHECKSUM} arduino-cli_${TAG}_macOS_64bit.tar.gz/g;" dist/*-checksums.txt | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.