Skip to content

1.0.12

1.0.12 #13

name: dotnet pack and publish
on:
release:
types: [released]
branches: [ main ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 8.0.101
- name: Restore dependencies
run: dotnet restore
- name: Build
run: VERSION=${GITHUB_REF##*/} dotnet build -warnaserror --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: VERSION=${GITHUB_REF##*/} dotnet pack -o . -c Release
- name: Publish
run: dotnet nuget push FsCloudInit.*.nupkg -s https://nuget.org -k ${{ secrets.NUGET_API_KEY }}