Skip to content

Commit

Permalink
..actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Feb 28, 2020
1 parent 0b7b6bd commit 5375353
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/cppcmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,26 @@ jobs:
pwd
ls -all
ls pkg-ubuntu-latest
ls pkg-macOS-latest
- name: Upload Release Asset
- name: Upload Release Asset (ubuntu)
if: startsWith(github.ref, 'refs/tags/')
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 its 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: pkg-ubuntu-latest
asset_name: pkg-ubuntu-latest
asset_content_type: application/zip
asset_path: pkg-ubuntu-latest/AudioCapture-0.1-Linux64-bionic.deb
asset_name: AudioCapture-0.1-Linux64-bionic.deb
asset_content_type: application/vnd.debian.binary-package

- name: Upload Release Asset (macOS)
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: pkg-macOS-latest/AudioCapture-1.13.0-MacOS64.dmg
asset_name: AudioCapture-1.13.0-MacOS64.dmg
asset_content_type: application/octet-stream

0 comments on commit 5375353

Please sign in to comment.