Skip to content

Commit

Permalink
Merge pull request #1176 from pjkaufman/master
Browse files Browse the repository at this point in the history
Chore: Add Zip File for Manual Plugin Install to Release Workflow
  • Loading branch information
pjkaufman authored Sep 27, 2024
2 parents 646539d + 8a59606 commit cba9e51
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- "*"

env:
PLUGIN_NAME: obsidian-linter

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,13 +18,19 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "18.x"

- name: Build plugin
run: |
npm ci
npm run build
- name: Create Manual Install Zip
run: |
mkdir ${{ env.PLUGIN_NAME }}
cp main.js manifest.json src/styles.css ${{ env.PLUGIN_NAME }}
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -31,4 +40,4 @@ jobs:
gh release create "$tag" \
--title="$tag" \
--draft \
main.js manifest.json src/styles.css
main.js manifest.json src/styles.css ${{ env.PLUGIN_NAME }}.zip

0 comments on commit cba9e51

Please sign in to comment.