forked from ionide/FsAutoComplete
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.14 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
name: Release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
8.0.x
7.0.x
6.0.x
include-prerelease: true
- name: remove global.json so that 7.0 builds
run: rm global.json
- name: Restore tools
run: dotnet tool restore
- name: Run Build
run: dotnet pack -c Release -o ./bin
env:
BuildNet8: true
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/[email protected]
with:
version: ${{ github.ref }}
path: ./CHANGELOG.md
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: bin/*.nupkg
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.changelog_reader.outputs.log_entry }}
- name: Push packages
run: dotnet nuget push bin/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}