You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/releasebuild.yml
+22-12Lines changed: 22 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,11 @@ jobs:
14
14
fail-fast: false
15
15
matrix:
16
16
language: [ 'go' ]
17
+
permissions:
18
+
# required for all workflows
19
+
security-events: read
20
+
actions: write
21
+
contents: write
17
22
18
23
steps:
19
24
- name: Checkout repository
@@ -28,36 +33,37 @@ jobs:
28
33
run: |
29
34
bash scripts/build-all-arch.sh
30
35
working-directory: "."
31
-
if: steps.build.outputs.exit_code == 0
32
36
33
37
- name: "Test"
38
+
id: "test"
34
39
# only testing amd64 and 386 builds, as the github machine do not support others
35
40
run: |
36
41
set -e
37
42
sudo apt-get install -y buildah
38
43
for exe in devc-v*amd64 devc-v*386 ; do echo -e "\nTesting $exe"; if ! ./$exe --version ; then echo "Error executing : $exe" ; exit 1; fi; done ;
39
44
working-directory: "."
40
-
if: steps.build.outputs.exit_code == 0
41
45
42
46
- name: Create Release
43
47
id: create_release
44
48
uses: actions/create-release@v1
45
49
env:
46
50
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
51
with:
48
-
tag_name: ${{ github.ref }}
49
-
release_name: ${{ github.ref }}
52
+
tag_name: ${{ github.ref_name }}
53
+
release_name: ${{ github.ref_name }}
50
54
draft: false
51
55
prerelease: false
56
+
if: steps.test.outputs.exit_code == 0
57
+
52
58
- name: Upload Release Asset 386
53
59
id: upload-release-asset-386
54
60
uses: actions/upload-release-asset@v1
55
61
env:
56
62
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57
63
with:
58
64
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
0 commit comments