chore(rebrand): finish P3.5 — MSBuild props, env vars, credential sto… #17
This file contains hidden or 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
| # Hand-written (not auto-generated) — see Build.CI.GitHubActions.cs for the | |
| # rationale (lets us bridge GitHub's NUGET_API_KEY secret to Fallout's | |
| # NuGetApiKey parameter, which would otherwise have to share a name). | |
| name: release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write # for ICreateGitHubRelease (tag + GitHub release) | |
| jobs: | |
| release: | |
| name: release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Nerdbank.GitVersioning needs full history | |
| - name: 'Cache: .fallout/temp, ~/.nuget/packages' | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .fallout/temp | |
| ~/.nuget/packages | |
| key: ${{ runner.os }}-release-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props', 'version.json') }} | |
| - name: 'Run: Test, Pack, Publish' | |
| run: ./build.cmd Test Pack Publish | |
| env: | |
| # Publish target is nuget.org now that Fallout.* rename has landed (#54). | |
| # NUGET_API_KEY is an API key scoped to push Fallout.* packages, set in | |
| # repo Settings → Secrets and variables → Actions. | |
| NuGetApiKey: ${{ secrets.NUGET_API_KEY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |