Skip to content

release: 368/merge

release: 368/merge #9

Workflow file for this run

name: on_pr_edit
run-name: 'release: ${{ github.ref_name }}'
on:
workflow_dispatch:
pull_request:
# TODO I'll probably need permission to publish a new release.
permissions:
id-token: write
contents: read
jobs:
get-current-version:
name: Get the current version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
depth: 0
- run: |
latest_tag=$(git describe --abbrev=0 --tags)
echo "current_version=$latest_tag" >> "$GITHUB_OUTPUT"
mac-build:
name: Create Mac release
runs-on: macos-latest
needs:
get-current-version
env:
CURRENT_VERSION: "${{ needs.get-current-version.outputs.current_version }}"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: 'npm'
- run: npm install dmg-license
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: "Wallet Recovery Wizard.dmg"
path: "release/${{ env.CURRENT_VERSION }}/Wallet Recovery Wizard-${{ env.CURRENT_VERSION }}.dmg"
if-no-files-found: "error"
windows-linux-build:
name: Create Windows and Linux release
runs-on: ubuntu-latest
needs:
get-current-version
container:
# TODO sha-pin this image
image: electronuserland/builder:16-wine
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run build -- -wl
- uses: actions/upload-artifact@v4
with:
name: "Wallet Recovery Wizard.exe"
path: "release/4.22.0/Wallet Recovery Wizard-Setup-4.22.0.exe"
if-no-files-found: "error"
- uses: actions/upload-artifact@v4
with:
name: "Wallet Recovery Wizard.deb"
path: "release/4.22.0/Wallet Recovery Wizard-Linux-4.22.0.deb"
if-no-files-found: "error"