aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorRobin Schneider <45321827+robinschneider@users.noreply.github.com>2021-10-10 21:41:23 +0200
committerGitHub <noreply@github.com>2021-10-10 21:41:23 +0200
commit7a4e78e8d0448541e76f6052c45f00b30cdf60e1 (patch)
tree77be480ad42c3e1a64005a1974206dc249273bbb /.github/workflows/release.yml
parent3faeac7e9fc3601283c58e2d585e00f346250e10 (diff)
parent66a434e7dba49011dd5401e32bb45ab180a73a11 (diff)
downloadhomer-7a4e78e8d0448541e76f6052c45f00b30cdf60e1.tar.gz
homer-7a4e78e8d0448541e76f6052c45f00b30cdf60e1.tar.zst
homer-7a4e78e8d0448541e76f6052c45f00b30cdf60e1.zip
Merge branch 'bastienwirtz:main' into icon-color
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