name: Release AstroFrame on: push: branches: [main] tags: ['v*'] workflow_dispatch: jobs: packages: # Same Docker label/container family as Decky's existing validation workflow. runs-on: docker container: image: node:22-bookworm timeout-minutes: 45 env: DOTNET_CLI_TELEMETRY_OPTOUT: '1' DOTNET_NOLOGO: '1' RELEASE_REF: ${{ github.ref }} steps: - name: Check out release source uses: https://data.forgejo.org/actions/checkout@v6 with: fetch-depth: 0 - name: Install build tools and Linux desktop dependencies run: | set -eu apt-get update apt-get install -y --no-install-recommends curl ca-certificates zip libicu72 libssl3 libx11-6 libice6 libsm6 libfontconfig1 libxrandr2 libxi6 libxcursor1 libxrender1 libxext6 xvfb xauth mkdir -p .tools/ci-dotnet curl -fsSL https://dot.net/v1/dotnet-install.sh -o .tools/dotnet-install-ci.sh bash .tools/dotnet-install-ci.sh --channel 10.0 --quality GA --install-dir "$PWD/.tools/ci-dotnet" --no-path bash .tools/dotnet-install-ci.sh --channel 8.0 --runtime dotnet --install-dir "$PWD/.tools/ci-dotnet" --no-path export PATH="$PWD/.tools/ci-dotnet:$PATH" export DOTNET_ROOT="$PWD/.tools/ci-dotnet" dotnet tool install powershell --tool-path "$PWD/.tools/pwsh-ci" --version 7.4.20 - name: Validate and build Windows and Linux packages run: | set -eu export PATH="$PWD/.tools/ci-dotnet:$PATH" export DOTNET_ROOT="$PWD/.tools/ci-dotnet" .tools/pwsh-ci/pwsh -NoProfile -File packaging/Build-ServerRelease.ps1 -Ref "$RELEASE_REF" - name: Check packaged Linux settings page run: | set -eu mkdir -p artifacts/server-release/qa chmod +x artifacts/server-release/packages/linux-x64/AstroFrame-linux-x64.AppImage APPIMAGE_EXTRACT_AND_RUN=1 xvfb-run -a artifacts/server-release/packages/linux-x64/AstroFrame-linux-x64.AppImage --capture-settings "$PWD/artifacts/server-release/qa/settings.png" 620 144 test -s artifacts/server-release/qa/settings.png - name: Publish completed tagged release if: startsWith(github.ref, 'refs/tags/v') env: # Forgejo supplies a repository-scoped token; no personal token is needed. ASTROFRAME_RELEASE_TOKEN: ${{ github.token }} run: | set -eu export PATH="$PWD/.tools/ci-dotnet:$PATH" export DOTNET_ROOT="$PWD/.tools/ci-dotnet" .tools/pwsh-ci/pwsh -NoProfile -File packaging/Publish.ps1 -Directory artifacts/server-release/packages -Publish -RequireTag