Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Add Zip File for Manual Plugin Install to Release Workflow #1176

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading