Skip to content

Merge pull request #4 from JohnsonMao/develop #17

Merge pull request #4 from JohnsonMao/develop

Merge pull request #4 from JohnsonMao/develop #17

name: Build and Deploy
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
name: Build and Deploy to GitHub pages
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Set up PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install and Build 🔧
run: |
pnpm install
pnpm 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: actions/deploy-pages@v1
with:
token: ${{ github.token }}