Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deployment step #5

Merged
merged 1 commit into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading