Bump Microsoft.NET.Test.Sdk from 17.12.0 to 17.13.0 #108
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: Release AET.Modinfo | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
# Builds and tests the solution. | |
test: | |
uses: ./.github/workflows/test.yml | |
pack: | |
name: Pack | |
needs: [test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
- name: Create packages | |
run: dotnet pack --configuration Release --output ./packages | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NuGet packages | |
path: packages/*.* | |
deploy: | |
name: Deploy | |
if: | | |
github.ref == 'refs/heads/master' && github.event_name == 'push' | |
needs: [pack] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: NuGet packages | |
path: packages | |
- name: Push packages | |
run: dotnet nuget push "packages/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json | |
- uses: dotnet/nbgv@v0.4.2 | |
id: nbgv | |
- name: Create GitHub release | |
uses: softprops/action-gh-release@v2 | |
with: | |
name: v${{ steps.nbgv.outputs.SemVer2 }} | |
tag_name: v${{ steps.nbgv.outputs.SemVer2 }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generate_release_notes: true |