From: Sebastián Ramírez Date: Tue, 21 Jul 2020 21:08:14 +0000 (+0200) Subject: 🚀 GitHub Actions update, use commit from PR, not pre-merge (#1761) X-Git-Tag: 0.60.1~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8bafe2a48269b91ad71fd9c15de4a1755045dd6f;p=thirdparty%2Ffastapi%2Ffastapi.git 🚀 GitHub Actions update, use commit from PR, not pre-merge (#1761) * 🔥 Remove deploy badge that won't show correctly until next release after the fixes to the Gitter bot * 🐛 Fix GitHub Action to upload docs artifacts with commit from PR, not pre-merge * ♻️ Run zip docs and artifact upload only on PRs --- diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 1bda0429ab..9c2349923b 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -19,10 +19,12 @@ jobs: - name: Build Docs run: python3.7 ./scripts/docs.py build-all - name: Zip docs + if: github.event_name == 'pull_request' run: bash ./scripts/zip-docs.sh - uses: actions/upload-artifact@v2 + if: github.event_name == 'pull_request' with: - name: docs-zip-${{ github.sha }} + name: docs-zip-${{ github.event.pull_request.head.sha }} path: ./docs.zip - name: Deploy to Netlify uses: nwtgck/actions-netlify@v1.1.5 diff --git a/README.md b/README.md index 1fcdb4e2fc..9fed5de828 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,6 @@ Test - - Publish - Coverage diff --git a/docs/en/docs/index.md b/docs/en/docs/index.md index 1fcdb4e2fc..9fed5de828 100644 --- a/docs/en/docs/index.md +++ b/docs/en/docs/index.md @@ -8,9 +8,6 @@ Test - - Publish - Coverage diff --git a/docs/es/docs/index.md b/docs/es/docs/index.md index 197bf3322c..c60c57d6d1 100644 --- a/docs/es/docs/index.md +++ b/docs/es/docs/index.md @@ -8,9 +8,6 @@ Test - - Publish - Coverage diff --git a/docs/pt/docs/index.md b/docs/pt/docs/index.md index 76bc202df6..574a49b17e 100644 --- a/docs/pt/docs/index.md +++ b/docs/pt/docs/index.md @@ -8,9 +8,6 @@ Test - - Publish - Coverage diff --git a/docs/zh/docs/index.md b/docs/zh/docs/index.md index fb17293425..851255334e 100644 --- a/docs/zh/docs/index.md +++ b/docs/zh/docs/index.md @@ -8,9 +8,6 @@ Test - - Publish - Coverage