-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (37 loc) · 1.25 KB
/
deployment.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
48
49
50
name: Release Package
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore tools
run: dotnet tool restore
# Build and Pack need to be seperate operations due to error NU5026
- name: Build
run: dotnet build --configuration Release
- name: Pack
run: dotnet pack --no-build -p:PackageVersion=${{ github.ref_name }} -p:PackageReleaseNotes=${{ github.event.release.html_url }} --output .
working-directory: ./src/Feliz.ReactSpeedometer
- name: Publish
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
working-directory: ./src/Feliz.ReactSpeedometer
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Restore demo tools
run: dotnet tool restore
working-directory: ./demo
- name: Set git user
uses: fregante/setup-git-user@v2
- name: Deploy Demo
run: npm run publish-docs
working-directory: ./demo