Skip to content

Commit 3c7cd77

Browse files
committed
added github workflow file
1 parent 0b9f32d commit 3c7cd77

File tree

3 files changed

+70
-3
lines changed

3 files changed

+70
-3
lines changed

.github/workflows/release.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Build plugin
27+
run: npm run build
28+
29+
- name: Create plugin directory
30+
run: mkdir obsidotion-plugin
31+
32+
- name: Copy plugin files
33+
run: |
34+
cp main.js obsidotion-plugin/
35+
cp manifest.json obsidotion-plugin/
36+
cp styles.css obsidotion-plugin/
37+
38+
- name: Create zip
39+
run: cd obsidotion-plugin && zip -r ../obsidotion-plugin.zip . && cd ..
40+
41+
- name: Upload release asset
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: obsidotion-plugin
45+
path: obsidotion-plugin.zip
46+
47+
- name: Create Release
48+
uses: softprops/action-gh-release@v1
49+
with:
50+
tag_name: v${{ github.run_number }}
51+
name: Release v${{ github.run_number }}
52+
files: obsidotion-plugin.zip
53+
draft: false
54+
prerelease: false
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,25 @@ A simple obsidian plugin that syncs from/to obsidian/notion. Works on all platfo
1010

1111
# How to use
1212
1. Star the repo :P
13-
2. Install the plugin
13+
2. Install the plugin (see installation methods below)
1414
3. Follow this instruction: https://github.com/EasyChris/obsidian-to-notion/?tab=readme-ov-file#how-to-use
1515

1616
After that you can:
1717
1. Upload the whole vault to notion ( replaces remote data if already exists )
1818
2. Download the whole notion database to obsidian ( replaces local file if already exists )
1919

20-
# How to install manually
20+
# How to install
21+
22+
## Method 1: Download from releases (easiest)
23+
1. Go to [Releases](https://github.com/p32929/obsidotion/releases)
24+
2. Download `obsidotion-plugin.zip` from the latest release
25+
3. Extract the zip file
26+
4. Copy the extracted folder to `your_obsidian_vault/.obsidian/plugins/obsidotion`
27+
5. Open obsidian and enable the plugin
28+
29+
## Method 2: Manual build
30+
31+
2132
1. Star the repo :P
2233
2. Clone the repo inside `your_obsidian_vault/.obsidian/plugins`
2334
3. Go to the folder

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidotion",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "a simple obsidian plugin that syncs from/to obsidian/notion",
55
"main": "main.js",
66
"scripts": {

0 commit comments

Comments
 (0)