1 # Publish pre-build release
2 name: Upload Release Asset
10 name: Upload Release Asset
11 runs-on: ubuntu-latest
13 - uses: actions/checkout@v2
18 - name: Create artifact
19 working-directory: "dist"
20 run: zip -r ../homer.zip ./*
21 - name: Create Release
23 uses: actions/create-release@v1
25 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 tag_name: ${{ github.ref }}
28 release_name: Release ${{ github.ref }}
31 - name: Upload Release Asset
32 id: upload-release-asset
33 uses: actions/upload-release-asset@v1
35 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 upload_url: ${{ steps.create_release.outputs.upload_url }}
38 asset_path: ./homer.zip
40 asset_content_type: application/zip