Fix expo@52 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docs Site | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'docs/**' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
name: Build & Publish Docs Site | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: π Checkout repo | |
uses: actions/checkout@v4 | |
- name: π Enable corepack | |
run: corepack enable | |
- name: π Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: yarn | |
- name: π Install dependencies | |
run: cd docs && yarn install | |
- name: π¦ Build project | |
run: cd docs && yarn vite-react-ssg build | |
- name: π¦ Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: π¦ Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'docs/dist/' | |
- name: π Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |