chore: add release workflow

This commit is contained in:
chrislicodes 2023-05-17 21:58:15 +02:00
parent aebb62427d
commit 75ba181747
5 changed files with 40 additions and 11 deletions

34
.github/workflows/release.yml vendored Normal file
View 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
View file

@ -20,6 +20,3 @@ data.json
# Exclude macOS Finder (System Explorer) View States
.DS_Store
storage/*
!storage/.keep

View file

@ -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",

View file

@ -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",

View file

@ -1,3 +1,3 @@
{
"0.0.1": "0.15.0"
"1.0.0": "0.15.0"
}