Skip to content

release

release #15

Workflow file for this run

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 }}