-
Notifications
You must be signed in to change notification settings - Fork 19
28 lines (28 loc) · 1010 Bytes
/
publish-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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