Skip to content

Commit 321b5da

Browse files
Junhewk KimJunhewk Kim
authored andcommitted
Add: Github Actions
1 parent 4893a8b commit 321b5da

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
run: |
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

Comments
 (0)