-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 927 Bytes
/
publish.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
name: publish
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: run tests
run: |
dotnet test -c Release
- name: publish project
run: |
dotnet publish --no-self-contained -c Release -o build/release src/GrepRipper.UI
- name: build release archive
run: |
$Dll = Get-Item("./build/release/GrepRipper.UI.exe")
$VERSION = $Dll.VersionInfo.ProductVersion
7z a -t7z -mx=9 GrepRipper-$VERSION.7z ./build/release/*
- uses: ncipollo/release-action@v1
with:
artifacts: "GrepRipper-*.7z"
generateReleaseNotes: true
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}