From 9b3452eee3e7d32bda67455e78ac1df7e1fbba08 Mon Sep 17 00:00:00 2001 From: Hananoshika Yomaru Date: Wed, 11 Oct 2023 09:35:06 -0700 Subject: [PATCH] add github workflow --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ manifest.json | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) 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..63ba809 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Release Obsidian plugin + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Build plugin + run: | + bun install + bun 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/manifest.json b/manifest.json index 624001a..20f7eaa 100644 --- a/manifest.json +++ b/manifest.json @@ -8,4 +8,4 @@ "authorUrl": "https://obsidian.md", "fundingUrl": "https://obsidian.md/pricing", "isDesktopOnly": false -} +} \ No newline at end of file