Skip to content

Commit 6217386

Browse files
authored
Merge pull request #256 from bytecodealliance/ydnar/workflow-tweaks
.github: small workflow tweaks
2 parents 34d42b8 + 3496bc6 commit 6217386

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ on:
77

88
jobs:
99
build:
10+
name: Build binaries
11+
needs: tag
1012
permissions:
1113
contents: write
12-
name: Build Binaries
1314
runs-on: ubuntu-latest
1415

1516
strategy:
@@ -21,7 +22,7 @@ jobs:
2122
goarch: arm64
2223

2324
steps:
24-
- name: Checkout Code
25+
- name: Checkout repo
2526
uses: actions/checkout@v4
2627

2728
- name: Set up Go
@@ -32,26 +33,26 @@ jobs:
3233
- name: Run Go tests
3334
run: go test -v ./...
3435

35-
- name: Build Binary
36+
- name: Build binary
3637
run: |
3738
mkdir -p build
3839
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o wit-bindgen-go ./cmd/wit-bindgen-go
3940
tar -czvf build/wit-bindgen-go-${{ matrix.goos }}-${{ matrix.goarch }}.tgz wit-bindgen-go
4041
rm wit-bindgen-go
4142
42-
- name: Upload Artifact
43+
- name: Upload artifact
4344
uses: actions/upload-artifact@v4
4445
with:
4546
name: wit-bindgen-go_${{ matrix.goos }}_${{ matrix.goarch }}
4647
path: build/wit-bindgen-go-${{ matrix.goos }}-${{ matrix.goarch }}.tgz
4748
retention-days: 1
4849

4950
release:
50-
name: Create GitHub Release
51+
name: Create GitHub release
5152
needs: build
5253
runs-on: ubuntu-latest
5354
steps:
54-
- name: Checkout Code
55+
- name: Checkout repo
5556
uses: actions/checkout@v4
5657

5758
- name: Download Artifacts
@@ -60,14 +61,14 @@ jobs:
6061
path: build/
6162
merge-multiple: true # all artifacts are downloaded to this directory
6263

63-
- name: Extract Release Notes
64+
- name: Extract release notes
6465
run: |
6566
TAG_NAME=${GITHUB_REF#refs/tags/}
6667
cd $GITHUB_WORKSPACE
6768
./scripts/extract-changelog.sh $TAG_NAME > RELEASE_NOTES.md
6869
cat RELEASE_NOTES.md
6970
70-
- name: Create Release
71+
- name: Create release
7172
env:
7273
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7374
run: |

0 commit comments

Comments
 (0)