-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (38 loc) · 1.25 KB
/
publish.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Publish to Nuget
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up node.js
uses: actions/[email protected]
with:
node-version: "18"
cache: "npm"
cache-dependency-path: ./src/Framework.Configurator/configurator-ui
- name: Build UI
working-directory: ./src/Framework.Configurator/configurator-ui
run: |
npm ci
npm run ng build
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.100
- name: Restore dependencies
working-directory: ./src
run: |
dotnet restore
- name: Build and Pack
working-directory: ./src
run: |
dotnet pack IAD.Framework.sln --no-restore /p:PackageVersion=${{ github.event.release.tag_name }} /p:InformationalVersion=${{ github.sha }} -c Release -o out
- name: Publish
working-directory: ./src/out
run: |
dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}
env:
NUGET_TOKEN: ${{ secrets.NUGET_BSSFRAMEWORK }}