This repository was archived by the owner on Mar 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (42 loc) · 1.23 KB
/
CD.yml
File metadata and controls
57 lines (42 loc) · 1.23 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
name: CD
on:
push:
tags:
- 'v*'
jobs:
build:
strategy:
matrix:
channel: [Dev, Prod]
include:
- channel: Dev
ChannelName: Dev
Configuration: Debug
- channel: Prod
ChannelName: Prod
Configuration: Release
runs-on: windows-latest
steps:
- name: Set Environment Variables
shell: bash
run: echo "release_name="OStimAnimationTool-${GITHUB_REF#refs/*/} \(${{ matrix.ChannelName }}\)"" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Restore Dependencies
run: dotnet restore
- name: Build
run: dotnet publish OStimAnimationTool.sln -f net6.0-windows -c ${{ matrix.Configuration }} -o "$env:release_name" --no-restore
- name: Package Archive
run: |
7z a -tzip "$env:release_name.zip" "./$env:release_name/*"
rm -r "$env:release_name"
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "OStimAnimationTool-*"