Skip to content

Commit 1ed0220

Browse files
committed
add release workflow
1 parent 0ae3978 commit 1ed0220

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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@v4
14+
15+
- name: Use Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "18.x"
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Build plugin
24+
run: npm run build
25+
26+
- name: Create release
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
run: |
30+
tag="${{ github.ref_name }}"
31+
gh release create "$tag" \
32+
--title="$tag" \
33+
--draft \
34+
main.js manifest.json styles.css

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "atmark",
33
"name": "ATmark",
4-
"version": "1.0.0",
4+
"version": "0.1.0",
55
"minAppVersion": "0.15.0",
66
"description": "Obsidian plugin for AT Protocol bookmark platforms",
77
"author": "treethought",

0 commit comments

Comments
 (0)