v4.0.0-rc.1 #2
Workflow file for this run
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: Release | |
| on: | |
| release: | |
| types: | |
| - published | |
| env: | |
| # Stop wasting time caching packages | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| # Disable sending usage data to Microsoft | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| # GitHub Packages Feed settings | |
| GITHUB_FEED: https://nuget.pkg.github.com/autoguru-au/ | |
| GITHUB_USER: autoguru-au | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Official NuGet Feed settings | |
| NUGET_FEED: https://api.nuget.org/v3/index.json | |
| NUGET_KEY: ${{ secrets.NUGET_KEY }} | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| - name: Create Release NuGet package | |
| run: | | |
| arrTag=(${GITHUB_REF//\// }) | |
| VERSION="${arrTag[2]}" | |
| echo Version: $VERSION | |
| VERSION="${VERSION:1}" | |
| echo Clean Version: $VERSION | |
| dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg EntityFrameworkCore.Triggered.Core.slnf | |
| - name: Push to GitHub Feed | |
| run: | | |
| for f in ./nupkg/*.nupkg | |
| do | |
| dotnet nuget push $f --source $GITHUB_FEED --api-key ${{github.token}} --skip-duplicate --no-symbols | |
| done | |
| - name: Push to NuGet Feed | |
| run: | | |
| for f in ./nupkg/*.nupkg | |
| do | |
| dotnet nuget push $f --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY | |
| done |