Preview • v1.1.0-preview2 • Merge pull request #19 from Cabazure/net8.0 Roll-back dependencies to ensure net8.0 support #9
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: Release Preview | |
run-name: Preview • ${{ github.ref_name }} • ${{ github.event.head_commit.message }} | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+-preview[0-9]*" | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
packages: write | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛒 Checkout repository | |
uses: actions/checkout@v4 | |
- name: 🏷️ Set VERSION variable from tag | |
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV | |
- name: ⚙️ Setup dotnet 9.0.x | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '9.0.x' | |
- name: 🧹 Clean | |
run: dotnet clean -c Release && dotnet nuget locals all --clear | |
- name: 🏗️ Restore dependencies | |
run: dotnet restore | |
- name: 🛠️ Build solution | |
run: dotnet build --no-restore -c:Release -p:SourceRevisionId=${VERSION} -p:Version=${VERSION} | |
- name: 📦 Push packages to NuGet | |
run: dotnet nuget push **/Cabazure.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_KEY }} --skip-duplicate --no-symbols |