Skip to content

config: ci cd web static #1

config: ci cd web static

config: ci cd web static #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
# Build job
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Build project
run: npx expo export -p web
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
# Deploy job
deploy:
name: Deploy
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1