mirror of
https://github.com/chrislicodes/obsidian-chess-study.git
synced 2026-07-22 07:50:30 +00:00
chore: add release workflow
This commit is contained in:
parent
aebb62427d
commit
75ba181747
5 changed files with 40 additions and 11 deletions
34
.github/workflows/release.yml
vendored
Normal file
34
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
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
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -20,6 +20,3 @@ data.json
|
|||
|
||||
# Exclude macOS Finder (System Explorer) View States
|
||||
.DS_Store
|
||||
|
||||
storage/*
|
||||
!storage/.keep
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-chessify",
|
||||
"id": "chessify",
|
||||
"name": "Chessify",
|
||||
"version": "0.1.0",
|
||||
"version": "1.0.0",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "A chess study helper and PGN viewer for Obsidian.",
|
||||
"author": "Christoph Lindstädt",
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
{
|
||||
"name": "obsidian-chessify",
|
||||
"version": "0.1.0",
|
||||
"description": "A chess study helper and PGN viewer for Obsidian",
|
||||
"version": "1.0.0",
|
||||
"description": "A chess study helper and PGN viewer for Obsidian.",
|
||||
"keywords": [
|
||||
"chess",
|
||||
"obsidian",
|
||||
"PGN",
|
||||
"study"
|
||||
"obsidian"
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "Christoph Lindstädt",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"0.0.1": "0.15.0"
|
||||
"1.0.0": "0.15.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue