-
-
Notifications
You must be signed in to change notification settings - Fork 441
55 lines (44 loc) · 1.58 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Publish release
on:
push:
tags:
- '*'
jobs:
build-release:
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Install NuGet
uses: nuget/setup-nuget@v1
- name: Restore NuGet dependencies
run: nuget restore
- name: Decode certificate
shell: bash
run: echo ${{ secrets.PFX_CERTIFICATE_FILE }} | base64 --decode > ./EverythingToolbar.snk
- name: Build all
run: MSBuild $Env:GITHUB_WORKSPACE /p:Configuration=Release
- name: Rename msi
shell: bash
run: mv EverythingToolbar.Installer/bin/x64/Release/EverythingToolbar.msi EverythingToolbar-${{ github.ref_name }}.msi
- name: Generate SHA-256 checksum
shell: bash
run: sha256sum EverythingToolbar-${{ github.ref_name }}.msi > EverythingToolbar-${{ github.ref_name }}.sha256
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: EverythingToolbar ${{ github.ref_name }}
path: |
EverythingToolbar-${{ github.ref_name }}.msi
EverythingToolbar-${{ github.ref_name }}.sha256
- name: Create release draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" `
"EverythingToolbar-${{ github.ref_name }}.msi" `
"EverythingToolbar-${{ github.ref_name }}.sha256" `
--draft `
--title "${{ github.ref_name }}"