Bump the xunit group with 1 update (#39) #75
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
name: Nightly MyGet Package Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: 'true' | |
steps: | |
- name: Setup .Net | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
9.0.x | |
- uses: actions/checkout@v5 | |
with: | |
fetch-depth: 0 | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/setup@v4.1.0 | |
with: | |
versionSpec: '6.x' | |
- name: Use GitVersion | |
id: gitversion # step id used as reference for output values | |
uses: gittools/actions/gitversion/execute@v4.1.0 | |
- run: | | |
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.MajorMinorPatch }}" | |
echo "FullSemVer: ${{ steps.gitversion.outputs.FullSemVer }}" | |
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}" | |
- name: Restore with .Net | |
run: dotnet restore --nologo | |
- name: Build with .Net | |
run: dotnet build --configuration Release --no-restore --nologo "-p:Version=${{ steps.gitversion.outputs.FullSemVer }}" | |
- name: Pack with .Net | |
run: dotnet pack src/Aviationexam.DependencyUpdater/Aviationexam.DependencyUpdater.csproj --nologo --no-build --configuration Release --output nuget-packages -p:PackageVersion=${{ steps.gitversion.outputs.FullSemVer }} -p:AotBuild=false | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Nuget-packages-${{ steps.gitversion.outputs.FullSemVer }} | |
path: nuget-packages | |
- name: Push package to Myget | |
if: ${{ vars.USE_MYGET == 'true' }} | |
run: dotnet nuget push 'nuget-packages/*.nupkg' --api-key ${{ secrets.MYGET_API_KEY }} --source https://www.myget.org/F/dependency-updater/api/v3/index.json | |
- name: Push package to Feedz | |
if: ${{ vars.USE_FEEDZ == 'true' }} | |
run: dotnet nuget push 'nuget-packages/*.nupkg' --api-key ${{ secrets.FEEDZ_API_KEY }} --source https://f.feedz.io/aviationexam/dependency-updater/nuget/index.json |