Skip to content

Sutil Publish Nuget #31

Sutil Publish Nuget

Sutil Publish Nuget #31

name: Sutil Publish Nuget
on: [workflow_dispatch]
jobs:
Sutil-Publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Clean
run: |
cd ${{ github.workspace }}
dotnet clean src/Sutil && dotnet nuget locals all --clear
dotnet clean src/App && dotnet nuget locals all --clear
dotnet clean src/DevTools && dotnet nuget locals all --clear
dotnet clean tests/test && dotnet nuget locals all --clear
dotnet clean tests/src/Fable.Expect && dotnet nuget locals all --clear
- name: Publish
env:
NUGET_KEY: ${{ secrets.NUGET_KEY_SECRET }}
run: |
cd ${{ github.workspace }}
npm install
dotnet build src/Sutil -c Release
npm run publish:package
- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: src/Sutil/Sutil.fsproj
commit_message: Release to nuget