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