Skip to content

Commit ed58b06

Browse files
author
Pat Hickey
committed
add job to create release
1 parent 0192bef commit ed58b06

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,43 @@ jobs:
4040
- run: sudo make -j4 package
4141
shell: bash
4242
name: Build
43+
- uses: actions/upload-artifact@v1
44+
with:
45+
name: ${{ format( 'packages-{}.tgz', matrix.os) }}
46+
path: dist
47+
48+
49+
release:
50+
name: Release
51+
needs: build
52+
if: startsWith( 'TEST-wasi-sdk-', github.ref)
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Create release
56+
id: create_release
57+
uses: actions/create-release@v1.0.0
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
with:
61+
tag_name: ${{ github.ref }}
62+
release_name: Release ${{ github.ref }}
63+
draft: false
64+
prerelease: false
65+
- name: Download Linux build artifact
66+
uses: actions/download-artifact@v1
67+
with:
68+
name: packages-ubuntu-latest
69+
- name: Download Mac build artifact
70+
uses: actions/download-artifact@v1
71+
with:
72+
name: packages-macos-latest
73+
- name: Upload release assets
74+
uses: actions/upload-release-asset@v1.0.1
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
with:
78+
upload_url: ${{ steps.create_release.outputs.upload_url }}
79+
asset_path: ./packages-ubuntu-latest.tgz
80+
81+
82+

0 commit comments

Comments
 (0)