]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - .github/workflows/main.yml
Fix missing directory in artifact creation.
[github/bastienwirtz/homer.git] / .github / workflows / main.yml
CommitLineData
2301d891
BW
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
c712d7c7
BW
18 - name: Create artifact
19 working-directory: "dist"
20 run: zip -r ../homer.zip ./*
2301d891
BW
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.run_id }}
28 release_name: Release ${{ github.run_id }}
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