Skip to content

Release app

Release app #30

Workflow file for this run

name: Release app
on:
workflow_dispatch:
jobs:
release-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set Version Env Var
run: echo "WOURNAL_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
- name: Test Print Version
run: echo "Wournal Version is $WOURNAL_VERSION"
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- name: Make Portable Release
env:
PKG_PORTABLE: true
run: npm run make -- --targets=zip
- name: Make AppImage Release
run: npm run make -- --targets=AppImage
- name: Upload Artifacts (Release Artifacts)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node .github/util-scripts/upload-artifacts.js
- name: Upload Artifacts [linux-portable] (Actions Artifacts)
uses: actions/upload-artifact@v4
with:
name: Wournal-GNU-Linux-Portable-${{env.WOURNAL_VERSION}}.zip
path: out/make/zip/linux/x64/Wournal-linux-x64-${{env.WOURNAL_VERSION}}.zip
- name: Upload Artifacts [linux-appimage] (Actions Artifacts)
uses: actions/upload-artifact@v4
with:
name: Wournal-GNU-Linux-${{env.WOURNAL_VERSION}}.AppImage
path: out/make/AppImage/x64/Wournal-linux-x64-${{env.WOURNAL_VERSION}}.zip
release-windows:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set Version Env Var
run: echo "WOURNAL_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
- name: Test Print Version
run: echo "Wournal Version is $WOURNAL_VERSION"
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- name: Make Portable Release
env:
PKG_PORTABLE: true
run: npm run make -- --targets=zip
- name: Make NSIS Release
run: npm run make -- --targets=nsis
- name: Upload Artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node .github/util-scripts/upload-artifacts.js
- name: Upload Artifacts [windows-portable] (Actions Artifacts)
uses: actions/upload-artifact@v4
with:
name: Wournal-Windows-Portable-${{env.WOURNAL_VERSION}}.zip
path: out/make/zip/win32/x64/Wournal-win32-x64-${{env.WOURNAL_VERSION}}.zip
- name: Upload Artifacts [windows-setup] (Actions Artifacts)
uses: actions/upload-artifact@v4
with:
name: Wournal-Windows-Setup-${{env.WOURNAL_VERSION}}.exe
path: out/make/nsis/x64/Wournal Setup ${{env.WOURNAL_VERSION}}.exe