Skip to content

Merge pull request #2 from JohnsonMao/develop #16

Merge pull request #2 from JohnsonMao/develop

Merge pull request #2 from JohnsonMao/develop #16

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Install and Build 🔧
run: |
yarn
yarn build
env:
VITE_CLIENT_ID: ${{ secrets.VITE_CLIENT_ID}}
VITE_CLIENT_SECRET: ${{ secrets.VITE_CLIENT_SECRET}}
VITE_MAP_STYLE_ID: ${{ secrets.VITE_MAP_STYLE_ID}}
VITE_MAP_USERNAME: ${{ secrets.VITE_MAP_USERNAME}}
VITE_MAP_TOKEN: ${{ secrets.VITE_MAP_TOKEN}}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: build