forked from yiyungent/SimCaptcha
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSimCaptcha.AspNetCore-release.yml
More file actions
53 lines (45 loc) · 1.38 KB
/
SimCaptcha.AspNetCore-release.yml
File metadata and controls
53 lines (45 loc) · 1.38 KB
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
51
52
53
name: SimCaptcha.AspNetCore Release
on:
push:
tags:
- 'SimCaptcha.AspNetCore-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: 5.0.102
- name: Build
run: |
cd ./src/SimCaptcha.AspNetCore
dotnet build --configuration Release
ls
ls ./bin/Release/
- name: Zip the Build
run: |
cd ./src/SimCaptcha.AspNetCore/bin/Release
zip -r SimCaptcha.AspNetCore-netcoreapp3.0.zip ./netcoreapp3.0/
zip -r SimCaptcha.AspNetCore-netcoreapp3.1.zip ./netcoreapp3.1/
zip -r SimCaptcha.AspNetCore-net5.0.zip ./net5.0/
cd ../../../../
mv ./src/SimCaptcha.AspNetCore/bin/Release/*.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: |
SimCaptcha.AspNetCore-netcoreapp3.0.zip
SimCaptcha.AspNetCore-netcoreapp3.1.zip
SimCaptcha.AspNetCore-net5.0.zip
LICENSE
README.md