Skip to content

Fast initial location loading #136

Fast initial location loading

Fast initial location loading #136

Workflow file for this run

name: build
on:
push:
branches: [ "standalone-dev", "master" ]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
CI: false
NEXT_PUBLIC_API_URL: api.worldguessr.com
NEXT_PUBLIC_WS_HOST: server.worldguessr.com
NEXT_PUBLIC_GOOGLE_CLIENT_ID: 471080734176-vm588te8pig8tnmvi00b5hr143d64qjk.apps.googleusercontent.com
# add more env vars here
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install and Build
run: |
npm i
npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out