diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-05-30 23:22:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 23:22:02 -0700 |
commit | 5fa6b6cfa6b3010279ead23088add5c5664e8ac0 (patch) | |
tree | 5f3ffa4dc62b4355d38346ef0155878ca6aeedcd /.github | |
parent | ab7ac44c191e3b7dea696e76b74097e23f73b18c (diff) | |
parent | 9052ec59b75a37b4518ad39c493ee6c2d4198b98 (diff) | |
download | homer-5fa6b6cfa6b3010279ead23088add5c5664e8ac0.tar.gz homer-5fa6b6cfa6b3010279ead23088add5c5664e8ac0.tar.zst homer-5fa6b6cfa6b3010279ead23088add5c5664e8ac0.zip |
Merge pull request #62 from bastienwirtz/dev/build-system120405250
Build system integration using vue-cli.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/main.yml | 38 |
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 | ||
2 | name: Upload Release Asset | ||
3 | |||
4 | on: | ||
5 | push: | ||
6 | branches: [master] | ||
7 | |||
8 | jobs: | ||
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 | ||