Skip to content

Commit d2403e1

Browse files
author
Alejandro Alvarez
committed
📝 (attach-artifact-release.yml): refactor workflow to improve readability and organization
🔧 (attach-artifact-release.yml): change job name from "Attach Artifact to Release" to "Prepare Release" for clarity 🔧 (attach-artifact-release.yml): remove unnecessary blank lines and reorganize steps for better flow and readability
1 parent 935db65 commit d2403e1

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

.github/workflows/attach-artifact-release.yml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,14 @@ env:
1212

1313
jobs:
1414
prepare-release:
15-
name: Attach Artifact to Release
15+
name: Prepare Release
1616
runs-on: ubuntu-latest
1717
outputs:
1818
upload_url: ${{ steps.get-release.outputs.upload_url }}
19+
1920
steps:
2021
- uses: actions/checkout@v4
2122

22-
- name: Setup Go
23-
uses: actions/setup-go@v3
24-
with:
25-
go-version: '^1.22'
26-
27-
- name: Setup GO environment
28-
run: |
29-
go mod download
30-
31-
- name: Update VERSION file
32-
run: |
33-
echo $VERSION > VERSION
34-
cat VERSION
35-
36-
- name: Release Artifact
37-
run: |
38-
make release
39-
ls -ltr bin/darwin_amd64
40-
4123
- name: Get latest draft release ID
4224
id: get-release
4325
run: |
@@ -82,7 +64,30 @@ jobs:
8264
{folder: s390x, zip_name: s390x},
8365
{folder: windows, zip_name: windows},
8466
]
67+
8568
steps:
69+
70+
- uses: actions/checkout@v4
71+
72+
- name: Setup Go
73+
uses: actions/setup-go@v3
74+
with:
75+
go-version: '^1.22'
76+
77+
- name: Setup GO environment
78+
run: |
79+
go mod download
80+
81+
- name: Update VERSION file
82+
run: |
83+
echo $VERSION > VERSION
84+
cat VERSION
85+
86+
- name: Release Artifact
87+
run: |
88+
make release
89+
ls -ltr bin/darwin_amd64
90+
8691
- name: Attach artifact to release
8792
uses: actions/[email protected]
8893
env:

0 commit comments

Comments
 (0)