We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9012fba commit 9e616ddCopy full SHA for 9e616dd
.github/workflows/release.yml
@@ -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
30
+ tag="${GITHUB_REF#refs/tags/}"
31
32
+ gh release create "$tag" \
33
+ --title="$tag" \
34
+ --draft \
35
+ main.js manifest.json
0 commit comments