Wails build #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |