aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2021-10-10 09:23:35 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2021-10-10 09:23:35 +0200
commita25e1b1a70649f4a0341056cca0669d4b7d78fb5 (patch)
tree400c00674b3a776f66e23164619d96bc5bee344a /.github/workflows/release.yml
parentcc26624f395d6ce34e4428c20a0731c6db10de7d (diff)
downloadhomer-a25e1b1a70649f4a0341056cca0669d4b7d78fb5.tar.gz
homer-a25e1b1a70649f4a0341056cca0669d4b7d78fb5.tar.zst
homer-a25e1b1a70649f4a0341056cca0669d4b7d78fb5.zip
Auto PR lint
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