Fix Semver back to v4.1.0 (Can't move it back to v2 due to accidental… #58
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 --legacy-peer-deps --save-dev --include=dev | |
- name: Setup Expo | |
uses: expo/expo-github-action@v7 | |
with: | |
expo-version: latest | |
packager: npm | |
- name: Build Web App with Expo | |
run: npx expo export:web | |
- name: Modify build | |
run: | | |
cp assets/web-privacy-policy.html web-build/privacy-policy.html | |
cp web-build/index.html web-build/404.html | |
cp assets/pwa-manifest.json web-build/manifest.json | |
cp -r assets/pwa-icons/chrome-icon web-build/pwa/chrome-icon | |
cp -r assets/pwa-icons/adaptable-icon web-build/pwa/adaptable-icon | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: web-build |