mirror of https://github.com/joplin/website.git
Move pages deployment to a separate job (as suggested by the actions
documentation)pull/15/head
parent
fb6345af1a
commit
8a295dbfb3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue