Skip to content

no release

no release #3

Workflow file for this run

name: Publish
on:
push:
branches:
- main
paths:
- RELEASE_NOTES.md
- .github/workflows/publish.yml
jobs:
pack:
name: Package
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.100'
- name: Restore Tools
run: dotnet tool restore
- name: Restore
run: dotnet paket restore
- name: Build
run: dotnet build
- name: Pack
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: dotnet aardpack SamSharp.sln --notag --norelease --no-release
- name: Upload Packages
uses: actions/upload-artifact@v2
with:
name: packages
path: bin\pack
- name: GitHub Packages
env:
NUGET_KEY: ${{ secrets.GITHUB_TOKEN }}
shell: cmd
run: dotnet nuget push "bin\pack\*.nupkg" -k %NUGET_KEY% -s "https://nuget.pkg.github.com/aardvark-community/index.json" --skip-duplicate
- name: NuGet
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
shell: cmd
run: dotnet nuget push "bin\pack\*.nupkg" -k %NUGET_KEY% -s "https://api.nuget.org/v3/index.json" --skip-duplicate