diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1715568 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/.gitignore b/.gitignore index cfc723c..386ac2b 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,3 @@ data.json # Exclude macOS Finder (System Explorer) View States .DS_Store - -storage/* -!storage/.keep diff --git a/manifest.json b/manifest.json index ebe953c..c797602 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/package.json b/package.json index 6e62a32..d78e932 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/versions.json b/versions.json index 4fde155..26382a1 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "0.0.1": "0.15.0" + "1.0.0": "0.15.0" }