Skip to content

release nightly

release nightly #14

Workflow file for this run

name: release nightly
on:
workflow_run:
workflows:
- build
types:
- completed
branches:
- master
env:
SK_VERSION: nover
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: cmake.yml
branch: ${{ github.event.release.target_commitish }}
workflow_conclusion: success
- name: Import signature key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GHA_GPG_KEY }}
passphrase: ${{ secrets.GHA_GPG_PWD }}
- name: Move artifacts to workspace
run: |
for file in *; do
if [ -d $file ]; then
pushd $file
if [[ $file == *-win64 ]]; then
7z a ../$file.7z .
gpg --detach-sign ../$file.7z
else
mv *.tar.xz ..
gpg --detach-sign ../*.tar.xz
fi
popd
fi
done
- uses: actions/checkout@v4
with:
path: repo
- name: Delete release
working-directory: repo
run: gh release delete nightly --cleanup-tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Wait a sec
run: sleep 2
- name: Release them
uses: softprops/action-gh-release@v2
with:
files: |
*.xz
*.7z
*.sig
tag_name: nightly
name: HavokToolset ${{env.SK_VERSION}} (nightly)