Skip to content

v1.2.2

v1.2.2 #59

Workflow file for this run

# Builds a final release version and pushes to nuget.org
# whenever a release is published.
# Requires: secrets.NUGET_API_KEY
name: publish
on:
release:
types: [released]
env:
DOTNET_NOLOGO: true
Configuration: Release
defaults:
run:
shell: bash
jobs:
publish:
runs-on: windows-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: ⚙ msbuild
uses: microsoft/[email protected]
- name: 🙏 build
shell: pwsh
working-directory: src/NuGetizer.Tests
run: |
dotnet restore Scenarios/given_a_packaging_project/a.nuproj
msbuild -r
- name: 📦 binlog
uses: actions/upload-artifact@v3
if: always()
with:
name: binlog-build-${{ github.run_number }}
path: src/NuGetizer.Tests/msbuild.binlog
- name: 🧪 test
uses: ./.github/workflows/test
- name: 📦 pack
run: dotnet pack -p:version=${GITHUB_REF#refs/*/v}
- name: 📦 binlog
uses: actions/upload-artifact@v3
if: always()
with:
name: binlog-pack-${{ github.run_number }}
path: msbuild.binlog
- name: 🚀 nuget
run: dotnet nuget push ./bin/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate