Replace inline publish step(s) with the canonical shell-only composite actions in andras/ci-actions. Switches the publish jobs to the registered 'docker' runner. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: Publish Obsidian plugin
|
|
|
|
on:
|
|
push:
|
|
tags: ["*"]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
publish-plugin:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "25.x"
|
|
|
|
- name: Build plugin
|
|
run: |
|
|
cd frontend
|
|
npm ci
|
|
npm run build
|
|
|
|
- name: Setup Rust toolchain
|
|
uses: https://github.com/dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: "1.92.0"
|
|
components: clippy, rustfmt
|
|
|
|
- name: Install cross-compilation tools
|
|
run: |
|
|
apt update
|
|
apt install -y gcc-aarch64-linux-gnu musl-tools gcc-mingw-w64-x86-64 jq
|
|
|
|
- name: Build Linux and Windows binaries
|
|
run: ./scripts/build-sync-server-binaries.sh
|
|
|
|
- name: Stage release assets
|
|
run: |
|
|
mkdir -p release
|
|
cp frontend/obsidian-plugin/dist/* release/
|
|
cp sync-server/artifacts/sync-server-* release/
|
|
|
|
- name: Create draft release
|
|
uses: http://forgejo:3000/andras/ci-actions/forgejo-release@main
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
files: release
|
|
draft: "true"
|