From 8600d1343eef531850db877f66dd0f20699cdb64 Mon Sep 17 00:00:00 2001 From: ccmdi Date: Thu, 9 Oct 2025 09:46:22 -0400 Subject: [PATCH] workflow --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..981c4fb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release Obsidian plugin +on: + push: + tags: + - "*" + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "22.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" \ + main.js manifest.json styles.css \ No newline at end of file