Move pages deployment to a separate job (as suggested by the actions

documentation)
pull/15/head
Henry Heino 2024-11-10 20:32:35 -08:00
parent fb6345af1a
commit 8a295dbfb3
1 changed files with 9 additions and 4 deletions

View File

@ -3,10 +3,6 @@ on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
# Permissions required for deployment to GitHub pages
permissions:
pages: write
id-token: write
jobs:
# We run the plugin website CI in a separate job that doesn't have
# SSH key access for extra security because it handles untrusted markdown.
@ -99,6 +95,15 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: 'joplin-website/docs/'
Deploy:
runs-on: ubuntu-latest
needs: Main
permissions:
# Permissions needed for pages deployment. See
# https://github.com/actions/deploy-pages
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4