diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml new file mode 100644 index 0000000..0e28d0c --- /dev/null +++ b/.github/workflows/update-docs.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index 89b95ae..dde2d8d 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,8 @@ dist/ .LSOverride # Icon must end with two \r -Icon +Icon + # Thumbnails ._* @@ -229,3 +230,5 @@ tags # End of https://www.toptal.com/developers/gitignore/api/vim,python,macos +# Firebase temp files +.firebase/