File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
+ name : Build binaries
11
+ needs : tag
10
12
permissions :
11
13
contents : write
12
- name : Build Binaries
13
14
runs-on : ubuntu-latest
14
15
15
16
strategy :
21
22
goarch : arm64
22
23
23
24
steps :
24
- - name : Checkout Code
25
+ - name : Checkout repo
25
26
uses : actions/checkout@v4
26
27
27
28
- name : Set up Go
@@ -32,26 +33,26 @@ jobs:
32
33
- name : Run Go tests
33
34
run : go test -v ./...
34
35
35
- - name : Build Binary
36
+ - name : Build binary
36
37
run : |
37
38
mkdir -p build
38
39
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o wit-bindgen-go ./cmd/wit-bindgen-go
39
40
tar -czvf build/wit-bindgen-go-${{ matrix.goos }}-${{ matrix.goarch }}.tgz wit-bindgen-go
40
41
rm wit-bindgen-go
41
42
42
- - name : Upload Artifact
43
+ - name : Upload artifact
43
44
uses : actions/upload-artifact@v4
44
45
with :
45
46
name : wit-bindgen-go_${{ matrix.goos }}_${{ matrix.goarch }}
46
47
path : build/wit-bindgen-go-${{ matrix.goos }}-${{ matrix.goarch }}.tgz
47
48
retention-days : 1
48
49
49
50
release :
50
- name : Create GitHub Release
51
+ name : Create GitHub release
51
52
needs : build
52
53
runs-on : ubuntu-latest
53
54
steps :
54
- - name : Checkout Code
55
+ - name : Checkout repo
55
56
uses : actions/checkout@v4
56
57
57
58
- name : Download Artifacts
@@ -60,14 +61,14 @@ jobs:
60
61
path : build/
61
62
merge-multiple : true # all artifacts are downloaded to this directory
62
63
63
- - name : Extract Release Notes
64
+ - name : Extract release notes
64
65
run : |
65
66
TAG_NAME=${GITHUB_REF#refs/tags/}
66
67
cd $GITHUB_WORKSPACE
67
68
./scripts/extract-changelog.sh $TAG_NAME > RELEASE_NOTES.md
68
69
cat RELEASE_NOTES.md
69
70
70
- - name : Create Release
71
+ - name : Create release
71
72
env :
72
73
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73
74
run : |
You can’t perform that action at this time.
0 commit comments