-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.5 KB
/
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
51
52
53
name: release
on:
workflow_dispatch:
env:
NUGET_PACKAGES: '${{ github.workspace }}/.nuget/packages'
jobs:
release:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
steps:
- name: Use GitHub App
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1
id: app
with:
app-id: ${{ vars.AYAKA_RELEASES_APP_ID }}
private-key: ${{ secrets.AYAKA_RELEASES_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
token: ${{ steps.app.outputs.token }}
- name: NuGet Cache
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
with:
path: |
${{ env.NUGET_PACKAGES }}
.nuke/temp
key: ${{ runner.os }}-nuget-${{ hashFiles('**/global.json', '**/*.csproj', '**/*.props') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup .NET
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4
- name: Restore .NET Tools
run: |
dotnet tool restore
- name: Create GitHub Release
run: |
dotnet nuke CreateRelease \
--github-token $GITHUB_TOKEN
env:
GITHUB_TOKEN: ${{ steps.app.outputs.token }}