Skip to content

Bump to v0.2.0 — PDF Chisel rename and new icon #2

Bump to v0.2.0 — PDF Chisel rename and new icon

Bump to v0.2.0 — PDF Chisel rename and new icon #2

Workflow file for this run

name: Build & Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: windows-latest
platform: win
artifact: release/*.exe
- os: ubuntu-latest
platform: linux
artifact: release/*.AppImage
- os: macos-latest
platform: mac
artifact: release/*.dmg
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Download PDFium binaries
run: node scripts/download-pdfium.js
- name: Build native addon
run: npm run build:native
- name: Build TypeScript
run: npm run build
- name: Build installer
run: npm run dist:${{ matrix.platform }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: installer-${{ matrix.platform }}
path: |
release/*.exe
release/*.dmg
release/*.AppImage
if-no-files-found: warn
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: List artifacts
run: find artifacts -type f | head -50
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: false
generate_release_notes: true
files: |
artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}