Skip to content

Build and Release

Build and Release #7

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*.*.*' # Triggers on tags like v3.0.0, v3.1.0, etc.
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Install pkg globally
run: npm install -g pkg
- name: Build with pkg
run: pkg .
- name: Rename executable
run: |
cd dist
mv patcher.exe patcher-windows-x64.exe
ls -lah
- name: Create checksums
run: |
cd dist
sha256sum * > checksums.txt
- name: Get tag name
id: tag_name
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/patcher-windows-x64.exe
dist/checksums.txt
draft: false
prerelease: false
generate_release_notes: true
name: Release ${{ steps.tag_name.outputs.TAG }}
body: |
## Patcher ${{ steps.tag_name.outputs.TAG }}
Download for Windows:
- **Windows 64-bit**: `patcher-windows-x64.exe`
### Installation
1. Download `patcher-windows-x64.exe`
2. Drag and drop your WBFS/ISO/DOL file onto the executable
3. Or run from command line: `patcher-windows-x64.exe your-game-file.iso`
See the full README for more information: https://github.com/${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}