-
Notifications
You must be signed in to change notification settings - Fork 89
40 lines (32 loc) · 1.05 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
name: SAFE Template release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Tool Restore
run: dotnet tool restore
- name: Release
env:
VERSION: ${{ github.ref_name }}
RELEASE_NOTES_URL: ${{ github.event.release.html_url }}
RELEASE_NOTES_BODY: ${{ github.event.release.body }}
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
run: dotnet run --project Build.fsproj -- Release
- name: Update Release notes
env:
VERSION: ${{ github.ref_name }}
RELEASE_NOTES_BODY: ${{ github.event.release.body }}
run: dotnet run --project Build.fsproj -- UpdateReleaseNotes
- name: Commit and push Release Notes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'master'
message: ${{ format( 'Release {0} 🚀', github.ref_name) }}