Skip to content

Commit

Permalink
Merge pull request #13 from kounoike/chore-release-2
Browse files Browse the repository at this point in the history
change upload-release-action
  • Loading branch information
kounoike committed Oct 2, 2021
2 parents 579f285 + 2adce6b commit 57979c5
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/upload-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
release:
type:
- published
push:
tags:
- 'v*'

name: Upload Release Asset

Expand Down Expand Up @@ -36,23 +36,11 @@ jobs:
${{ runner.os }}-
- name: build
run: .\scripts\build_win.bat
- 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: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
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: ./build/obs-virtualbg-${{ github.ref }}-win64.zip
asset_name: obs-virtualbg-${{ github.ref }}-win64.zip
asset_content_type: application/zip
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/obs-virtualbg-*.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 57979c5

Please sign in to comment.