Skip to content

Commit

Permalink
Fixed building releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnlak committed Nov 18, 2020
1 parent d0ac445 commit 199f4b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
push:
pull_request:
release:
types: [published, created, edited]
types: [created]

env:
BUILD_TYPE: Release
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Package Release
if: github.event_name == 'release' && matrix.release-suffix != ''
shell: bash
working-directory: ${{runner.workspace}}/build
working-directory: ${{runner.workspace}}/main/build
run: |
cmake --build . --target install
tar -zcf ${RELEASE_FILE}.tar.gz bin/
Expand All @@ -120,7 +120,7 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
asset_path: ${{runner.workspace}}/build/${{env.RELEASE_FILE}}.tar.gz
asset_path: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.tar.gz
upload_url: ${{github.event.release.upload_url}}
asset_name: ${{env.RELEASE_FILE}}.tar.gz
asset_content_type: application/octet-stream
Expand All @@ -132,7 +132,7 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
asset_path: ${{runner.workspace}}/build/${{env.RELEASE_FILE}}.zip
asset_path: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.zip
upload_url: ${{github.event.release.upload_url}}
asset_name: ${{env.RELEASE_FILE}}.zip
asset_content_type: application/zip

0 comments on commit 199f4b1

Please sign in to comment.