Skip to content

Commit 98a9f49

Browse files
committed
Fix release workflow
1 parent b902f7f commit 98a9f49

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/release.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v1
14+
uses: actions/checkout@v2
1515
with:
1616
fetch-depth: 0
1717

@@ -29,6 +29,10 @@ jobs:
2929
repo-token: ${{ secrets.GITHUB_TOKEN }}
3030
version: 3.x
3131

32+
- uses: actions/setup-go@v2
33+
with:
34+
go-version: "^1.16.2"
35+
3236
- name: Build
3337
run: task dist:all
3438

@@ -83,10 +87,10 @@ jobs:
8387
# Repackage the signed binary replaced in place by Gon (ignoring the output zip file)
8488
run: |
8589
TAG=${GITHUB_REF/refs\/tags\//}
86-
tar cj firmwares \
90+
tar cjf dist/FirmwareUpdater_${TAG}_macOS_64bit.tar.bz2 \
91+
firmwares \
8792
LICENSE.txt \
88-
-C dist/macos64/ FirmwareUpdater \
89-
-f dist/FirmwareUpdater_${TAG}_macOS_64bit.tar.bz2
93+
-C dist/macos64/ FirmwareUpdater
9094
9195
- name: Upload artifacts
9296
uses: actions/upload-artifact@v2
@@ -131,14 +135,10 @@ jobs:
131135
if [[ $(/tmp/semver get prerel ${GITHUB_REF/refs\/tags\//}) ]]; then echo "::set-output name=IS_PRE::true"; fi
132136
133137
- name: Create Github Release and upload artifacts
134-
id: create_release
135138
uses: ncipollo/release-action@v1
136-
env:
137-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138139
with:
139-
tag: ${{ github.ref }}
140-
name: ${{ github.ref }}
140+
token: ${{ secrets.GITHUB_TOKEN }}
141141
bodyFile: "dist/CHANGELOG.md"
142142
draft: false
143143
prerelease: ${{ steps.prerelease.outputs.IS_PRE }}
144-
artifacts: dist/*
144+
artifacts: dist/FirmwareUpdater*

0 commit comments

Comments
 (0)