diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml index e352472a..98ef8399 100644 --- a/.github/workflows/webpack.yml +++ b/.github/workflows/webpack.yml @@ -40,3 +40,23 @@ jobs: path: ${{ github.workspace }}/contribution-samples/target/ overwrite: true compression-level: 0 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: true + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ${{ github.workspace }}/contribution-samples/target/contribution-samples.urcapx + asset_name: contribution-samples.urcapx + asset_content_type: application/tar+gzip