aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/main.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r--.github/workflows/main.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..792fe59
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,38 @@
1# Publish pre-build release
2name: Upload Release Asset
3
4on:
5 push:
6 branches: [master]
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 zip --junk-paths homer dist/*
19 - name: Create Release
20 id: create_release
21 uses: actions/create-release@v1
22 env:
23 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 with:
25 tag_name: ${{ github.run_id }}
26 release_name: Release ${{ github.run_id }}
27 draft: false
28 prerelease: false
29 - name: Upload Release Asset
30 id: upload-release-asset
31 uses: actions/upload-release-asset@v1
32 env:
33 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 with:
35 upload_url: ${{ steps.create_release.outputs.upload_url }}
36 asset_path: ./homer.zip
37 asset_name: homer.zip
38 asset_content_type: application/zip