-
-
Notifications
You must be signed in to change notification settings - Fork 285
40 lines (30 loc) · 1.04 KB
/
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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: Version number for release
required: true
type: string
jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- uses: microsoft/setup-msbuild@v2
- run: echo ${{ secrets.ENV_FILE }} | base64 --decode > .env
shell: bash
- run: scripts\version.ps1 ${{ github.event.inputs.version }}
- run: scripts\package.ps1
- run: gh release create $env:TAG_NAME --draft --title "$env:RELEASE_NAME" (Get-Item dist\*.exe) dist\checksums.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NAME: WinDynamicDesktop ${{ github.event.inputs.version }}
TAG_NAME: v${{ github.event.inputs.version }}
- uses: actions/upload-artifact@v4
with:
name: msixupload # To download/extract: gh run download -n msixupload
path: dist\*.msixupload