-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (40 loc) · 1.32 KB
/
publish-release.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: Publish Aydsko iRacing Data API to NuGet
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
name: 'Publish Package'
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Avoid pre-populating the NuGet package cache
steps:
- name: 'Check Tag Value'
run: echo ${{ github.event.release.tag_name }}
- uses: robinraju/[email protected]
name: 'Download Package from Release'
with:
repository: 'AdrianJSClark/aydsko-iracingdata'
token: ${{ secrets.GITHUB_TOKEN }}
tag: '${{ github.event.release.tag_name }}'
fileName: '*'
tarBall: false
zipBall: false
- name: 'Expand Documentation Site'
shell: pwsh
run: Expand-Archive -Path DocumentationSite.zip -DestinationPath ./_site
- name: 'Upload Site Artifacts'
uses: actions/upload-artifact@v4
with:
name: 'Documentation Site'
path: '_site'
- name: 'Upload to NuGet'
shell: pwsh
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }}
deploy:
name: Deploy Documentation
needs: build
uses: ./.github/workflows/_deploy-docs.yml