Moved checkout step to the top as I think it should be the 1st step. #53
Workflow file for this run
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: nuget-build-deploy | |
on: | |
push: | |
branches: | |
- '**' | |
tags: | |
- '\d+\.\d+\.\d+' | |
paths-ignore: | |
- '**/*.md' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_type }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build π | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-version: ['8.0.x'] | |
steps: | |
- name: Check out Code π | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET ${{ matrix.dotnet-version }} πΎ | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Display dotnet version π§ | |
run: dotnet --version | |
- name: Dispatch Nuke π | |
shell: bash | |
env: | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
NUGET_URL: ${{ vars.NUGET_URL }} | |
PACKAGES_GITHUB_NUGET_PAT: ${{ secrets.PACKAGES_GITHUB_NUGET_PAT }} | |
PACKAGES_GITHUB_NUGET_URL: ${{ vars.PACKAGES_GITHUB_NUGET_URL }} | |
RELEASE_NOTES: ${{ vars.RELEASE_NOTES }} | |
Configuration: Release | |
IgnoreFailedSources: false | |
run: | | |
./src/build.sh |