]> git.immae.eu Git - github/bastienwirtz/homer.git/blob - .github/workflows/main.yml
792fe59d2c794909d4910eeeceabfe9153a0db29
[github/bastienwirtz/homer.git] / .github / workflows / main.yml
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