Publish nightly
All checks were successful
Build Game / Export Game Client (push) Successful in 1m6s
All checks were successful
Build Game / Export Game Client (push) Successful in 1m6s
This commit is contained in:
@ -94,4 +94,32 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: game-clients
|
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"
|
||||||
Reference in New Issue
Block a user