24.33.1 #60
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
#### Build and tests all pushes, also code coverage | |
name: 📦 Publish nuget | |
on: | |
release: | |
types: | |
- released | |
- prereleased | |
jobs: | |
deploy_nuget: | |
name: 📦 publish nuget packages | |
runs-on: ubuntu-latest | |
environment: CI - release environment | |
steps: | |
- name: 📤 Checkout the repository | |
uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- name: ⏭️ Get next version | |
id: version | |
run: | | |
latest=$(git describe --tags $(git rev-list --tags --max-count=1)) | |
echo Current version: $latest | |
echo "::set-output name=version::$latest" | |
- name: 🥅 Install .Net 8 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: "8.0.x" # SDK Version | |
- name: 🎁 Pack AppModel | |
run: dotnet pack . --configuration Release -p:PackageVersion=${{ steps.version.outputs.version }} | |
- name: 📨 Push to nuget | |
run: dotnet nuget push **/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --no-symbols |