|
9 | 9 | create-release-artifacts:
|
10 | 10 | runs-on: ubuntu-latest
|
11 | 11 |
|
12 |
| - container: |
13 |
| - image: arduino/arduino-cli:builder-1 |
14 |
| - volumes: |
15 |
| - # cache go dependencies across pipeline's steps |
16 |
| - - ${{ github.workspace }}/go:/go |
17 |
| - |
18 | 12 | steps:
|
19 | 13 | - name: Checkout
|
20 | 14 | uses: actions/checkout@v1
|
21 | 15 | with:
|
22 | 16 | fetch-depth: 0
|
23 | 17 |
|
| 18 | + - name: Create changelog |
| 19 | + uses: arduino/create-changelog@1.2.0 |
| 20 | + with: |
| 21 | + tag-regex: '^[0-9]+\.[0-9]+\.[0-9]+$' |
| 22 | + filter-regex: '^\[(skip|changelog)[ ,-](skip|changelog)\].*' |
| 23 | + case-insensitive-regex: true |
| 24 | + changelog-file-path: "dist/CHANGELOG.md" |
| 25 | + |
| 26 | + - name: Install Taskfile |
| 27 | + uses: arduino/actions/setup-taskfile@master |
| 28 | + with: |
| 29 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 30 | + version: 3.x |
| 31 | + |
24 | 32 | - name: Build
|
25 |
| - run: goreleaser |
| 33 | + run: task dist:all |
26 | 34 |
|
27 | 35 | - name: Upload artifacts
|
28 | 36 | uses: actions/upload-artifact@v2
|
@@ -72,14 +80,14 @@ jobs:
|
72 | 80 | - name: Re-package binary and update checksum
|
73 | 81 | # This step performs the following:
|
74 | 82 | # 1. Repackage the signed binary replaced in place by Gon (ignoring the output zip file)
|
75 |
| - # 2. Recalculate package checksum and replace it in the goreleaser nnnnnn-checksums.txt file |
| 83 | + # 2. Recalculate package checksum and replace it in the nnnnnn-checksums.txt file |
76 | 84 | run: |
|
77 | 85 | # GitHub's upload/download-artifact@v1 actions don't preserve file permissions,
|
78 | 86 | # so we need to add execution permission back until @v2 actions are released.
|
79 |
| - chmod +x dist/arduino_cli_osx_darwin_amd64/arduino-cli |
| 87 | + chmod +x dist/arduino-cli_osx_darwin_amd64/arduino-cli |
80 | 88 | TAG=${GITHUB_REF/refs\/tags\//}
|
81 | 89 | tar -czvf dist/arduino-cli_${TAG}_macOS_64bit.tar.gz \
|
82 |
| - -C dist/arduino_cli_osx_darwin_amd64/ arduino-cli \ |
| 90 | + -C dist/arduino-cli_osx_darwin_amd64/ arduino-cli \ |
83 | 91 | -C ../../ LICENSE.txt
|
84 | 92 | CLI_CHECKSUM=$(shasum -a 256 dist/arduino-cli_${TAG}_macOS_64bit.tar.gz | cut -d " " -f 1)
|
85 | 93 | 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
|
|
0 commit comments