aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..886556d
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,40 @@
1# Publish pre-build release
2name: Upload Release Asset
3
4on:
5 push:
6 tags: [v*]
7
8jobs:
9 build:
10 name: Upload Release Asset
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v2
14 - name: Build project
15 run: |
16 yarn install
17 yarn build
18 - name: Create artifact
19 working-directory: "dist"
20 run: zip -r ../homer.zip ./*
21 - name: Create Release
22 id: create_release
23 uses: actions/create-release@v1
24 env:
25 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 with:
27 tag_name: ${{ github.ref }}
28 release_name: Release ${{ github.ref }}
29 draft: false
30 prerelease: false
31 - name: Upload Release Asset
32 id: upload-release-asset
33 uses: actions/upload-release-asset@v1
34 env:
35 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 with:
37 upload_url: ${{ steps.create_release.outputs.upload_url }}
38 asset_path: ./homer.zip
39 asset_name: homer.zip
40 asset_content_type: application/zip