Leaderboard now compatible with v2 API #63
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
# Builds React Native app as a webpage and deploys it to GitHub Pages | |
name: Deploy Web | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ deploy-web ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
PUBLIC_URL: "/ReactNativeCardinalBoticsApp" | |
NODE_ENV: "production" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
- name: Install Dependencies | |
run: npm install --save-dev --include=dev | |
- name: Setup Expo | |
uses: expo/expo-github-action@v8 | |
with: | |
expo-version: latest | |
packager: npm | |
- name: Build Web App with Expo | |
run: npx expo export -p web --output-dir web-build/ | |
- name: Modify build | |
run: | | |
npx workbox-cli generateSW workbox-config.js | |
cp assets/web-privacy-policy.html web-build/privacy-policy.html | |
cp web-build/index.html web-build/404.html | |
touch web-build/.nojekyll | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4.6.4 | |
with: | |
branch: gh-pages | |
folder: web-build |