vault-link/.forgejo/workflows/publish-plugin.yml
Andras Schmelczer 339e17d27d
Some checks failed
Publish CLI / publish-docker (pull_request) Failing after 29s
Publish server Docker image / publish-docker (pull_request) Failing after 53s
Check / build (pull_request) Has been cancelled
E2E tests / build (pull_request) Has been cancelled
Adopt shared ci-actions for publishing
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>
2026-06-06 15:00:39 +01:00

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"