Skip to content

fix/update_cicd

fix/update_cicd #210

Workflow file for this run

name: GitHub Pages
on:
push:
branches: [ "main" ]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
build:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Use Node.js 24
uses: actions/setup-node@v5
with:
node-version: 24
cache: npm
cache-dependency-path: |
frontend/app/package-lock.json
- name: Install deps
working-directory: frontend/app
run: npm ci
- name: Build (expo export -p web)
working-directory: frontend/app
run: npx expo export -p web --output-dir dist
- name: Verify dist output
working-directory: frontend/app
run: |
test -d dist
test -f dist/index.html
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: frontend/app/dist
deploy:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4