Skip to content

Commit 37a23e3

Browse files
committed
[skip changelog] Update release process (#1148)
* [skip changelog] Ditch goreleaser in favor of a new release process * [skip changelog] Fix version output test * [skip changelog] Fix some workflows issues * [skip changelog] Fix panic when running integration tests * [skip changelog] Remove extra chars from package name prefix
1 parent 41faa0c commit 37a23e3

19 files changed

+471
-315
lines changed

Diff for: .github/workflows/i18n-nightly-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: Arduino/actions/setup-taskfile@master
2525
with:
2626
repo-token: ${{ secrets.GITHUB_TOKEN }}
27+
version: 3.x
2728

2829
- name: Run task i18n:push
2930
run: task i18n:push

Diff for: .github/workflows/i18n-weekly-pull.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
uses: Arduino/actions/setup-taskfile@master
2929
with:
3030
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
version: 3.x
3132

3233
- name: Run task i18n:pull
3334
run: task i18n:pull

Diff for: .github/workflows/link-validation.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
uses: Arduino/actions/setup-taskfile@master
2121
with:
2222
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
version: 3.x
2324

2425
- name: Install Go
2526
uses: actions/setup-go@v2

Diff for: .github/workflows/nightly.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ jobs:
1212
if: github.repository == 'arduino/arduino-cli'
1313
runs-on: ubuntu-latest
1414

15-
container:
16-
image: arduino/arduino-cli:builder-1
17-
volumes:
18-
# cache go dependencies across pipeline's steps
19-
- ${{ github.workspace }}/go:/go
20-
2115
steps:
2216
- name: checkout
2317
uses: actions/checkout@v1
2418
with:
2519
fetch-depth: 0
2620

27-
- name: build
21+
- name: Install Taskfile
22+
uses: arduino/actions/setup-taskfile@master
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
version: 3.x
26+
27+
- name: Build
2828
env:
29-
PACKAGE_NAME_PREFIX: ${{ github.workflow }}
30-
run: goreleaser --snapshot
29+
NIGHTLY: true
30+
run: task dist:all
3131

3232
- name: Upload artifacts
3333
uses: actions/upload-artifact@v2
@@ -77,14 +77,14 @@ jobs:
7777
- name: Re-package binary and update checksum
7878
# This step performs the following:
7979
# 1. Repackage the signed binary replaced in place by Gon (ignoring the output zip file)
80-
# 2. Recalculate package checksum and replace it in the goreleaser nnnnnn-checksums.txt file
80+
# 2. Recalculate package checksum and replace it in the nnnnnn-checksums.txt file
8181
run: |
8282
# GitHub's upload/download-artifact@v1 actions don't preserve file permissions,
8383
# so we need to add execution permission back until @v2 actions are released.
84-
chmod +x dist/arduino_cli_osx_darwin_amd64/arduino-cli
84+
chmod +x dist/arduino-cli_osx_darwin_amd64/arduino-cli
8585
PACKAGE_FILENAME="$(basename dist/arduino-cli_${{ github.workflow }}-*_macOS_64bit.tar.gz)"
8686
tar -czvf dist/$PACKAGE_FILENAME \
87-
-C dist/arduino_cli_osx_darwin_amd64/ arduino-cli \
87+
-C dist/arduino-cli_osx_darwin_amd64/ arduino-cli \
8888
-C ../../ LICENSE.txt
8989
CLI_CHECKSUM=$(shasum -a 256 dist/$PACKAGE_FILENAME | cut -d " " -f 1)
9090
perl -pi -w -e "s/.*${PACKAGE_FILENAME}/${CLI_CHECKSUM} ${PACKAGE_FILENAME}/g;" dist/*-checksums.txt

Diff for: .github/workflows/publish-docs.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
uses: Arduino/actions/setup-taskfile@master
4848
with:
4949
repo-token: ${{ secrets.GITHUB_TOKEN }}
50+
version: 3.x
5051

5152
- name: Setup Go
5253
uses: actions/setup-go@v2

Diff for: .github/workflows/python-lint.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
uses: Arduino/actions/setup-taskfile@master
2424
with:
2525
repo-token: ${{ secrets.GITHUB_TOKEN }}
26+
version: 3.x
2627

2728
- name: Activate Python
2829
uses: actions/setup-python@v1

Diff for: .github/workflows/release.yaml

+18-10
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,28 @@ jobs:
99
create-release-artifacts:
1010
runs-on: ubuntu-latest
1111

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-
1812
steps:
1913
- name: Checkout
2014
uses: actions/checkout@v1
2115
with:
2216
fetch-depth: 0
2317

18+
- name: Create changelog
19+
uses: arduino/[email protected]
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+
2432
- name: Build
25-
run: goreleaser
33+
run: task dist:all
2634

2735
- name: Upload artifacts
2836
uses: actions/upload-artifact@v2
@@ -72,14 +80,14 @@ jobs:
7280
- name: Re-package binary and update checksum
7381
# This step performs the following:
7482
# 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
7684
run: |
7785
# GitHub's upload/download-artifact@v1 actions don't preserve file permissions,
7886
# 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
8088
TAG=${GITHUB_REF/refs\/tags\//}
8189
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 \
8391
-C ../../ LICENSE.txt
8492
CLI_CHECKSUM=$(shasum -a 256 dist/arduino-cli_${TAG}_macOS_64bit.tar.gz | cut -d " " -f 1)
8593
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

Diff for: .github/workflows/test.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
uses: Arduino/actions/setup-taskfile@master
4040
with:
4141
repo-token: ${{ secrets.GITHUB_TOKEN }}
42+
version: 3.x
4243

4344
- name: Install Python
4445
uses: actions/setup-python@v1
@@ -105,28 +106,27 @@ jobs:
105106
runs-on: ubuntu-latest
106107
needs: test-matrix
107108

108-
container:
109-
image: arduino/arduino-cli:builder-1
110-
volumes:
111-
# cache go dependencies across pipeline's steps
112-
- ${{ github.workspace }}/go:/go
113-
114109
steps:
115110
- name: checkout
116111
uses: actions/checkout@v1
117112
with:
118113
fetch-depth: 0
119114

120-
- name: build
121-
shell: bash
115+
- name: Install Taskfile
116+
uses: arduino/actions/setup-taskfile@master
117+
with:
118+
repo-token: ${{ secrets.GITHUB_TOKEN }}
119+
version: 3.x
120+
121+
- name: Build
122122
run: |
123123
PACKAGE_NAME_PREFIX="${{ github.workflow }}"
124124
if [ "${{ github.event_name }}" = "pull_request" ]; then
125125
PACKAGE_NAME_PREFIX="$PACKAGE_NAME_PREFIX-${{ github.event.number }}"
126126
fi
127-
PACKAGE_NAME_PREFIX="$PACKAGE_NAME_PREFIX-${{ github.sha }}"
127+
PACKAGE_NAME_PREFIX="$PACKAGE_NAME_PREFIX-${{ github.sha }}-"
128128
export PACKAGE_NAME_PREFIX
129-
goreleaser --snapshot
129+
task dist:all
130130
131131
# Uploads all architectures as separate artifacts
132132
- name: Upload Linux 32 bit artifact

Diff for: .github/workflows/validate-docs.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
uses: Arduino/actions/setup-taskfile@master
3535
with:
3636
repo-token: ${{ secrets.GITHUB_TOKEN }}
37+
version: 3.x
3738

3839
- name: Setup Go
3940
uses: actions/setup-go@v2

Diff for: .github/workflows/verify-formatting.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
uses: Arduino/actions/setup-taskfile@master
2929
with:
3030
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
version: 3.x
3132

3233
- name: Verify formatting of all files
3334
run: task docs:check config:check

Diff for: .goreleaser.yml

-123
This file was deleted.

0 commit comments

Comments
 (0)