Skip to content

Commit

Permalink
Fix deployment step (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored May 27, 2024
1 parent 00368e0 commit 850b12f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

permissions:
contents: write

Expand Down Expand Up @@ -48,10 +52,18 @@ jobs:
- run: cd ./build && ctest --build-config Release --output-on-failure --parallel

- run: cpack --config build/CPackConfig.cmake -B build/out -C Release
- run: rm -rf build/out/_CPack_Packages

# TODO: Do this from another job in the workflow so we can collect from multiple platforms
# TODO: Create a proper release if there is a tag instead
- run: gh config set prompt disabled
env:
GH_TOKEN: ${{ github.token }}
- run: gh release delete continuous --cleanup-tag --yes || true
env:
GH_TOKEN: ${{ github.token }}
- run: gh release create continuous --prerelease --draft=false --title continuous --target "$GITHUB_SHA"
- run: gh release upload --clobber continuous build/out/*
env:
GH_TOKEN: ${{ github.token }}
- run: gh release upload --clobber continuous build/out/*.zip
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 850b12f

Please sign in to comment.