Workflows: improve filenames of CI artifacts (#34)

- Changes the export name to `rota-ci` to make it clear the artifacts are generated in CI
- Appends the release tag to artifacts for releases resulting in e.g. `rota-ci-2025.04.29.pck`

Equivalent of https://github.com/HarmonyHoney/tiny_crate/pull/13 but for ROTA. :)
This commit is contained in:
Cassidy James Blaede 2025-04-30 15:48:45 -06:00 committed by GitHub
parent ffdde6e933
commit 5e2ace8d5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,7 +8,7 @@ on:
env:
GODOT_VERSION: 3.6
EXPORT_NAME: rota-linux
EXPORT_NAME: rota-ci
jobs:
export:
@ -53,4 +53,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
gh release upload '${{ github.ref_name }}' ${{ env.EXPORT_NAME }}.pck --repo '${{ github.repository }}'
mv '${{ env.EXPORT_NAME }}.pck' '${{ env.EXPORT_NAME }}-${{ github.ref_name }}.pck'
gh release upload '${{ github.ref_name }}' '${{ env.EXPORT_NAME }}-${{ github.ref_name }}.pck' --repo '${{ github.repository }}'