Skip to content

Build and deploy to pages #14

Build and deploy to pages

Build and deploy to pages #14

name: Build and deploy to pages
on:
workflow_dispatch:
# GITHUB_TOKEN permssions for deploying to pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: 'laurent22/joplin'
ref: dev
- name: Prepare yarn
run: corepack enable
- name: Install dependencies
run: yarn install
- name: Build pages
run: cd packages/app-mobile/ && yarn web
- name: Copy pages artifact
run: |
cp -r packages/app-mobile/web/dist/ pages/
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'pages/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4