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: Update the plugin repository with GitHub Actions #18

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
Use npm install rather than cloning the entire Joplin GitHub repo
  • Loading branch information
personalizedrefrigerator committed Jul 15, 2024
commit 63eac4b30a6cbcddfe8ced7a845b8402823cae0d
43 changes: 43 additions & 0 deletions .github/workflows/update-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build Joplin Website
on:
schedule:
- cron: "0 */6 * * *"
personalizedrefrigerator marked this conversation as resolved.
Show resolved Hide resolved
workflow_dispatch:
jobs:
PluginRepo:
runs-on: ubuntu-latest
steps:
- name: Checkout Joplin plugin repository
uses: actions/checkout@v4
with:
ref: master
path: 'plugins'

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Set up NPM
run: |
# Allow installing packages globally
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'

- name: Prepare git
shell: bash
# Makes the commit author be shown as GitHub Actions in the
# GitHub UI.
# See https://github.com/actions/checkout/pull/1707
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
personalizedrefrigerator marked this conversation as resolved.
Show resolved Hide resolved

- name: Build
shell: bash
# See https://github.com/actions/checkout/pull/1707
run: |
export PATH=~/.npm-global/bin:$PATH
npm i --global @joplin/plugin-repo-cli
cd plugins
plugin-repo-cli build .