Skip to content

Merge pull request #105 from benchmark-urbanism/dev #162

Merge pull request #105 from benchmark-urbanism/dev

Merge pull request #105 from benchmark-urbanism/dev #162

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: deploy docs
on:
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: "3.11"
cache: true
- name: Build docs
run: |
pdm install --dev
pdm run generate_docs
- run: cd docs && npm install && npm run build && cd ..
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
entrypoint: ./docs
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_CITYSEER_API_DOCS }}"
channelId: live
projectId: cityseer-api-docs
env:
FIREBASE_CLI_PREVIEWS: hostingchannels