Skip to content

Commit

Permalink
Ar/adding docs pipeline (#14)
Browse files Browse the repository at this point in the history
* adding docs deployment pipeline

* adding docs deployment pipeline
  • Loading branch information
ali-encord authored Nov 4, 2024
1 parent 0f0503d commit 2cae68b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Encord Agents Update Docs

on:
push:
branches:
- master
workflow_dispatch:

env:
HOSTING: prod
GCP_PROJECT: cord-docs

concurrency:
group: agent-docs-${{ github.ref }}
cancel-in-progress: true

jobs:
run-checks:
name: Build and Publish Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup root poetry environment
uses: ./.github/actions/setup-root-poetry-environment

- name: Build Docs
run: |
poetry run mkdocs build
- name: Deploy Docs
run: |
npm install -g firebase-tools
echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' > /tmp/gcp_key.json
export GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcp_key.json
firebase deploy -P default --only hosting:${{ env.HOSTING }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ dist/
.LSOverride

# Icon must end with two \r
Icon
Icon


# Thumbnails
._*
Expand Down Expand Up @@ -229,3 +230,5 @@ tags

# End of https://www.toptal.com/developers/gitignore/api/vim,python,macos

# Firebase temp files
.firebase/

0 comments on commit 2cae68b

Please sign in to comment.