From dd51865834320fa9a719daa6edfa7d28e45b6637 Mon Sep 17 00:00:00 2001 From: Kirill Kouzoubov Date: Wed, 8 Nov 2023 12:39:08 +1100 Subject: [PATCH] sqme: moar --- .github/workflows/main.yml | 1 - .github/workflows/render.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b525dd1..7c790d4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -434,7 +434,6 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} enable-pull-request-comment: true enable-commit-comment: false - alias: ${{ hashFiles('tests/test-env-py38.yml')[:16] }} env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index 78673de..91730bd 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -126,3 +126,33 @@ jobs: name: rendered-notebooks path: docs/notebooks if-no-files-found: error + + - name: Build STAC docs + shell: bash + run: | + make -C docs html + + - name: Deploy to Netlify + id: netlify + uses: nwtgck/actions-netlify@v2 + with: + production-branch: "develop" + publish-dir: "docs/_build/html" + deploy-message: "Deploy from GitHub Actions" + github-token: ${{ secrets.GITHUB_TOKEN }} + enable-pull-request-comment: false + enable-commit-comment: false + + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + + - name: Print Notice + uses: actions/github-script@v6 + env: + NETLIFY_URL: ${{ steps.netlify.outputs.deploy-url }} + with: + script: | + const {NETLIFY_URL} = process.env + core.notice(`Published to: ${NETLIFY_URL}`) + \ No newline at end of file