Skip to content

Commit

Permalink
2.0.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Apr 14, 2024
1 parent c16b1e5 commit 0a040d4
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 2,719 deletions.
74 changes: 19 additions & 55 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,34 @@
name: Release Obsidian Plugin
name: Release Obsidian plugin

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Get Version
id: version
run: |
echo "::set-output name=tag::$(git describe --abbrev=0)"
- name: Build
id: build
node-version: '18.x'

- name: Build plugin
run: |
yarn
yarn run release
# Create the release on github
- name: Create Release
id: create_release
uses: actions/create-release@v1
npm install
npm run build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
# Upload the main.js
- name: Upload main.js
id: upload-main
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/main.js
asset_name: main.js
asset_content_type: text/javascript
# Upload the manifest.json
- name: Upload manifest.json
id: upload-manifest
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/manifest.json
asset_name: manifest.json
asset_content_type: application/json
# Upload the style.css
- name: Upload styles.css
id: upload-css
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/styles.css
asset_name: styles.css
asset_content_type: text/css
run: |
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" \
--title="$tag" \
--notes-file="release-notes.md" \
main.js manifest.json styles.css
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ package-lock.json
yarn*
dist
test-vault/
main.js
10 changes: 10 additions & 0 deletions manifest-beta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "obsidian-kanban",
"name": "Kanban",
"version": "2.0.0-beta",
"minAppVersion": "1.0.0",
"description": "Create markdown-backed Kanban boards in Obsidian.",
"author": "mgmeyers",
"authorUrl": "https://github.com/mgmeyers/obsidian-kanban",
"isDesktopOnly": false
}
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"name": "obsidian-sample-plugin",
"version": "0.11.13",
"name": "obsidian-kanban",
"version": "2.0.0-beta",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
"typecheck": "tsc --noemit",
"dev": "node esbuild.config.mjs",
"build": "yarn release",
"release": "cross-env BUILD=production obsidian-plugin build src/main.ts",
"build": "node esbuild.config.mjs production",
"lint": "eslint ./src/**/*.{ts,tsx}",
"lint:fix": "eslint ./src/**/*.{ts,tsx} --fix",
"prettier": "prettier --write \"./src/**/*.{ts,tsx}\"",
"clean": "yarn prettier && yarn lint:fix"
"clean": "yarn prettier && yarn lint:fix",
"rlnotes": "git log $(git describe --tags --abbrev=0)..HEAD --oneline > release-notes.md && git add release-notes.md",
"bump": "node version-bump.mjs && git add package.json manifest.json versions.json && yarn rlnotes",
"release": "git commit -m $npm_package_version && git tag $npm_package_version && git push && git push --tags"
},
"keywords": [],
"author": "",
Expand Down
9 changes: 9 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
c16b1e5 rm console logs
71d59cb RM main.js
8d40813 Big ol' commit
0645976 Pipe frontmatter through
70c2933 Implement date / time editor suggests
545eb66 Use base obsidian markdown editor
670aea0 Added russian localization (#829)
2b106df Added Korean localization (#832)
05e43e0 Commit docs workspace
Loading

0 comments on commit 0a040d4

Please sign in to comment.