Skip to content

Commit

Permalink
Update manifest, CI, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kikijiki committed Dec 14, 2024
1 parent bfb6925 commit 7723f0a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 17 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Build

on:
push:
branches: [ master ]
tags:
- 'v*'
branches:
- "*"
pull_request:
branches: [ master ]
branches:
- "main"

jobs:
build:
Expand All @@ -15,9 +15,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
node-version: "22"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Upload Release Assets
run: gh release upload ${{github.event.release.tag_name}} main.js manifest.json styles.css || true
env:
GITHUB_TOKEN: ${{ github.token }}
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ A simple habit tracker plugin for Obsidian.

## Screenshots

<div style="display: flex; gap: 10px;">
<div>
<p>Desktop</p>
<img src="screenshot-desktop.png" alt="Screenshot Desktop" style="height: 400px; width: auto;"/>
</div>
<div>
<p>Mobile</p>
<img src="screenshot-mobile.png" alt="Screenshot Mobile" style="height: 400px; width: auto;"/>
</div>
</div>
| Desktop | Mobile |
|---------|---------|
| <img src="screenshot-desktop.png" alt="Screenshot Desktop" height="400"/> | <img src="screenshot-mobile.png" alt="Screenshot Mobile" height="400"/> |
1 change: 0 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"description": "A simple habit tracker",
"author": "KIKIJIKI",
"authorUrl": "https://github.com/kikijiki",
"repo": "https://github.com/kikijiki/obsidian-habit-tracker",
"isDesktopOnly": false
}

0 comments on commit 7723f0a

Please sign in to comment.