diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e164d85..6ef020d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release Obsidian Plug-in +name: Release Obsidian plugin on: push: @@ -8,21 +8,27 @@ on: jobs: build: runs-on: ubuntu-latest + steps: - uses: actions/checkout@v3 + - name: Use Node.js uses: actions/setup-node@v3 with: node-version: "20.x" - - name: Build Plug-in + + - name: Build plugin run: | npm install npm run build - - name: Create Plug-in Release + + - name: Create plugin release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | tag="${GITHUB_REF#refs/tags/}" + gh release create "$tag" \ --title="$tag" \ - main.js manifest.json + --draft \ + main.js manifest.json \ No newline at end of file