-
-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (43 loc) · 1.23 KB
/
release-win.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
51
52
53
54
name: Deploy Release (Windows)
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build:
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
VERSION: ${{ github.ref_name }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Check version
run: |
$TAG = "${{ github.ref_name }}"
echo $TAG
- name: Set up .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
- name: Restore dependencies
run: nuget restore
- name: Build and make appcast (Windows only)
run: python Mirivoice.Desktop/deploy.py 2>&1
- name: Zip
run: |
$VERSION="${{ github.ref_name }}"
echo $VERSION
Compress-Archive -Path Mirivoice.Desktop/bin/win-x86/* -DestinationPath ./MiriVoice-win-x86.zip
Compress-Archive -Path Mirivoice.Desktop/bin/win-x64/* -DestinationPath ./MiriVoice-win-x64.zip
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: |
MiriVoice-win-x86.zip
MiriVoice-win-x64.zip
appcast.win-x86.xml
appcast.win-x64.xml