Publish nightly
All checks were successful
Build Game / Export Game Client (push) Successful in 1m6s

This commit is contained in:
olof.pettersson
2025-12-04 11:10:31 +01:00
parent 8423dfd969
commit 2e9363f303

View File

@ -94,4 +94,32 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: game-clients
path: build/
path: build/
- name: Publish Nightly Build
env:
# Config
PACKAGE_NAME: my-game-windows
# We overwrite the 'nightly' version every time so the URL stays the same
VERSION: nightly
ZIP_NAME: game-windows-nightly.zip
# Auth
API_URL: https://gitea.212.63.210.91.nip.io/api/packages/${{ gitea.repository_owner }}/generic
TOKEN: ${{ secrets.USER_PACKAGE_PASSWORD }}
run: |
echo "Packaging Game..."
cd build/windows
# Zip everything (Executable + PCK + potential .dlls)
zip -r ../../$ZIP_NAME .
cd ../..
echo "Uploading Nightly..."
# PUT request replaces the file if it exists
curl --fail --user "${{ gitea.actor }}:$TOKEN" \
--upload-file "$ZIP_NAME" \
"$API_URL/$PACKAGE_NAME/$VERSION/$ZIP_NAME"
echo "✅ Nightly Build Available at:"
echo "$API_URL/$PACKAGE_NAME/$VERSION/$ZIP_NAME"