Add Expired Auth Unit Test #99
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: Build & Publish Pre-Release (main) | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/Package Release Notes.txt' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build & Test | |
uses: ./.github/workflows/_build.yml | |
deploy: | |
name: Deploy Pre-Release NuGet Packages to Repository Packages | |
needs: build | |
runs-on: windows-latest | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Avoid pre-populating the NuGet package cache | |
steps: | |
- name: Download Artifacts | |
uses: actions/download-artifact@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
- name: Push Pre-Release Package to GitHub Packages | |
if: (format('{0}', env.PACKAGE_KEY) != '') | |
shell: pwsh | |
run: dotnet nuget push *.nupkg --api-key ${{ env.PACKAGE_KEY }} --source "https://nuget.pkg.github.com/AdrianJSClark/index.json" --skip-duplicate | |
working-directory: ./NuGet Packages/ | |
env: | |
PACKAGE_KEY: ${{ secrets.PACKAGE_UPLOAD }} | |
- name: Delete Old Packages | |
uses: smartsquaregmbh/[email protected] | |
with: | |
user: AdrianJSClark | |
type: nuget | |
keep: 5 | |
dry-run: true | |
names: | | |
Aydsko.iRacingData |