Skip to content

v1.2.3

v1.2.3 #307

Workflow file for this run

name: Web
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Install Node.js
uses: actions/setup-node@v3.5.1
with:
node-version: 16.x
- name: Setup Expo
uses: expo/expo-github-action@v7
with:
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install NPM packages
run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install
- name: Build project
run: PUBLIC_URL="https://wcpos.github.io/managed-expo/" yarn export:web
# - name: Run tests
# run: npm run test
- name: Upload production-ready build files
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./dist
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: production-files
path: ./build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: web-build
publish_dir: ./build