Sutil Publish Nuget #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |