forked from yiyungent/KnifeHub
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.13 KB
/
BackupPlugin-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: BackupPlugin Release
on:
push:
tags:
- 'BackupPlugin-v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- name: Build
run: |
cd ./plugins/BackupPlugin
dotnet build --configuration Release
ls
ls ./bin/Release/
ls ./bin/Release/net6.0/
- name: Zip the Build
run: |
cd ./plugins/BackupPlugin/bin/Release/net6.0
zip -r BackupPlugin-net6.0.zip *
cd ../../../../../
mv ./plugins/BackupPlugin/bin/Release/net6.0/*.zip ./
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
#tag_name: ${{ github.ref }}
#name: ${{ github.ref }}
body: TODO New Release.
#body_path: CHANGELOG.txt
draft: false
prerelease: false
files: |
BackupPlugin-net6.0.zip
LICENSE
README.md