-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (30 loc) · 817 Bytes
/
Copy pathrelease.yml
File metadata and controls
32 lines (30 loc) · 817 Bytes
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
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- run: dotnet build --configuration Release
- name: Get Version
id: version
uses: jungwinter/split@v2
with:
msg: ${{ github.ref }}
separator: v
- name: Release
uses: softprops/action-gh-release@v1
with:
files: bin/Release/net472/SmartEjectors.dll
- run: dotnet new tool-manifest
- run: dotnet tool install tcli
- name: Publish
env:
TCLI_AUTH_TOKEN: ${{ secrets.TCLI_AUTH_TOKEN }}
run: dotnet tcli publish --package-version "${{ steps.version.outputs._1 }}"