Skip to content

Commit 06f5c10

Browse files
committed
Set up publishing with GHA
1 parent 09946f3 commit 06f5c10

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,32 @@ jobs:
4141
with:
4242
name: distributables
4343
path: build/dist/*
44-
if-no-files-found: error
44+
if-no-files-found: error
45+
publish:
46+
name: Publish a release
47+
runs-on: "ubuntu-18.04"
48+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
49+
needs: build
50+
steps:
51+
- name: Get our distributables
52+
uses: actions/download-artifact@v2
53+
with:
54+
name: distributables
55+
path: built-distributables
56+
57+
- name: Upload server release
58+
uses: svenstaro/upload-release-action@v2
59+
with:
60+
repo_token: ${{ secrets.GITHUB_TOKEN }}
61+
file: ./built-distributables/v*/*
62+
file_glob: true
63+
tag: ${{ github.ref }}
64+
65+
- name: Upload latest manifest
66+
uses: svenstaro/upload-release-action@v2
67+
with:
68+
repo_token: ${{ secrets.GITHUB_TOKEN }}
69+
file: ./built-distributables/latest-manifest/*
70+
file_glob: true
71+
tag: test-latest-manifest
72+
overwrite: true

0 commit comments

Comments
 (0)