We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8834d5 commit c28836cCopy full SHA for c28836c
.github/workflows/release.yml
@@ -0,0 +1,34 @@
1
+name: Release Obsidian plugin
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "*"
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - uses: actions/checkout@v3
14
15
+ - name: Use Node.js
16
+ uses: actions/setup-node@v3
17
+ with:
18
+ node-version: "18.x"
19
20
+ - name: Build plugin
21
+ run: |
22
+ npm install
23
+ npm run build
24
25
+ - name: Create release
26
+ env:
27
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
29
+ tag="${GITHUB_REF#refs/tags/}"
30
31
+ gh release create "$tag" \
32
+ --title="$tag" \
33
+ --draft \
34
+ main.js manifest.json styles.css
0 commit comments