π Nightly builds #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π Nightly builds | |
on: [workflow_dispatch] | |
env: | |
AZURE_ARTIFACTS_FEED_URL: https://pkgs.dev.azure.com/godotengine/godot-dotnet/_packaging/godot-nightly/nuget/v3/index.json | |
jobs: | |
az-artifacts-build-and-deploy: | |
name: Build and deploy nightly artifacts | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Linux dependencies | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qqq build-essential pkg-config | |
- name: Build nightly packages | |
run: | | |
./build.sh --productBuild --test --publish --ci --warnaserror false /p:GenerateGodotBindings=true /p:OfficialBuildId=$(date '+%Y%m%d').1 | |
- name: Setup NuGet feed authentication | |
run: dotnet nuget add source ${{ env.AZURE_ARTIFACTS_FEED_URL }} --name "godot-nightly" --username az --password $NUGET_AUTH_TOKEN --store-password-in-clear-text | |
env: | |
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_TOKEN }} | |
- name: Publish NuGet packages | |
run: | | |
for pkg in artifacts/packages/Release/Shipping/*; do | |
dotnet nuget push $pkg -s "godot-nightly" --api-key "az" --skip-duplicate | |
done |