-
Notifications
You must be signed in to change notification settings - Fork 21
68 lines (59 loc) · 1.78 KB
/
wails-build.yaml
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
60
61
62
63
64
65
66
67
68
name: Wails build
on:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
build:
[
{
name: SteamAutoShutdown.exe,
platform: windows/amd64,
os: windows-latest,
nsis: false,
node-version: 20.10.0,
package: true,
},
]
runs-on: ${{ matrix.build.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
- name: Install pnpm
run: npm install -g pnpm
- name: Build with Wails
uses: dAppServer/[email protected]
with:
build-name: ${{ matrix.build.name }}
build-platform: ${{ matrix.build.platform }}
nsis: ${{ matrix.build.nsis }}
package: ${{ matrix.build.package }}
- name: Extract Version
run: |
version=$(jq -r '.info.productVersion' ./wails.json)
echo "Version extracted from wails.json: $version"
echo "version=$version" >> "$GITHUB_OUTPUT"
shell: bash
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Git
run: git config --global user.email "[email protected]" && git config --global user.name "GitHub Actions"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
Wails Build ${{ matrix.build.os }} ${{ inputs.build-name }}
tag_name: v${{ needs.build.outputs.version }}
title: Release v${{ needs.build.outputs.version }}