Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 8bf9f62

Browse files
committed
ci: add GitHub Actions workflow for plugin release
1 parent e0ffb7e commit 8bf9f62

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release Obsidian plugin
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: "18.x"
20+
21+
- name: Build plugin
22+
run: |
23+
npm install
24+
npm run build
25+
26+
- name: Create release
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
run: |
30+
tag="${GITHUB_REF#refs/tags/}"
31+
32+
gh release create "$tag" \
33+
--title="$tag" \
34+
--draft \
35+
main.js manifest.json styles.css

0 commit comments

Comments
 (0)