Skip to content

update repo assist #176

update repo assist

update repo assist #176

Workflow file for this run

name: Pack & Publish Nuget
on:
push:
branches:
- main
permissions:
#contents: write # for peaceiris/actions-gh-pages
id-token: write # for NuGet trusted publishing
jobs:
publish:
name: Publish nuget (if new version)
runs-on: windows-latest
steps:
# checkout the code
- name: checkout-code
uses: actions/checkout@v6
with:
fetch-depth: 0
# setup dotnet based on global.json
- name: setup-dotnet
uses: actions/setup-dotnet@v4
# build it, test it, pack it, publish it
- name: Run dotnet build (release, for nuget)
# see issue #105 and #243
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
shell: cmd
run: ./build.cmd
- name: Obtain NuGet key
# this hash is v1.1.0
uses: NuGet/login@d22cc5f58ff5b88bf9bd452535b4335137e24544
id: login
with:
user: dsyme
- name: Publish NuGets (if this version not published before)
run: dotnet nuget push packages\FSharp.Control.TaskSeq.*.nupkg -s https://www.nuget.org/api/v2/package -k ${{ steps.login.outputs.NUGET_API_KEY }} --skip-duplicate