Skip to content

Commit

Permalink
move README.md to features.md; add github actions release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenna committed Apr 6, 2024
1 parent 049aaf4 commit 1648444
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release Obsidian plugin

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Build plugin
run: |
npm install
npm run build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" \
--title="$tag" \
--draft \
main.js manifest.json styles.css
2 changes: 1 addition & 1 deletion cp-README.sh → cp-features.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

cp ~/Source/obsidian-main/Objectives/obsidian/new-plugins/Supernotes.md README.md
cp ~/Source/obsidian-main/Objectives/obsidian/new-plugins/Supernotes.md features.md
File renamed without changes.

0 comments on commit 1648444

Please sign in to comment.