Skip to content

Commit 76b66b8

Browse files
committed
Add release workflow
1 parent 1fb16c8 commit 76b66b8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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: Create release
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
run: |
19+
tag="${GITHUB_REF#refs/tags/}"
20+
21+
gh release create "$tag" \
22+
--title="$tag" \
23+
--draft \
24+
main.js manifest.json

0 commit comments

Comments
 (0)