-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (48 loc) · 1.45 KB
/
release.yml
File metadata and controls
59 lines (48 loc) · 1.45 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
54
55
56
57
58
59
name: Releases
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Install dependencies
run: dotnet restore
- name: Build
run: |
dotnet publish -c Release
copy LICENSE WriteAPI\bin\Release\net6.0\publish\
- name: Zip Write API
uses: papeloto/action-zip@v1
with:
files: WriteAPI/bin/Release/net6.0/publish/
dest: WriteAPI.zip
- name: Zip Sample Project
uses: papeloto/action-zip@v1
with:
files: SampleProject/bin/Release/netcoreapp3.1/publish/
dest: SampleProject.zip
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.0.0
- name: Bump Semver
uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver
with:
current_version: ${{ steps.previoustag.outputs.tag }}
level: minor
- name: Make Release
uses: ncipollo/release-action@v1
with:
commit: ${GITHUB_SHA}
bodyfile: "body.md"
artifacts: "WriteAPI.zip,SampleProject.zip"
tag: ${{ steps.bump-semver.outputs.new_version }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: true