From 8bafe2a48269b91ad71fd9c15de4a1755045dd6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 21 Jul 2020 23:08:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20GitHub=20Actions=20update,=20use?= =?UTF-8?q?=20commit=20from=20PR,=20not=20pre-merge=20(#1761)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔥 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 --- .github/workflows/build-docs.yml | 4 +++- README.md | 3 --- docs/en/docs/index.md | 3 --- docs/es/docs/index.md | 3 --- docs/pt/docs/index.md | 3 --- docs/zh/docs/index.md | 3 --- 6 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 1bda0429a..9c2349923 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 1fcdb4e2f..9fed5de82 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 1fcdb4e2f..9fed5de82 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 197bf3322..c60c57d6d 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 76bc202df..574a49b17 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 fb1729342..851255334 100644 --- a/docs/zh/docs/index.md +++ b/docs/zh/docs/index.md @@ -8,9 +8,6 @@ Test - - Publish - Coverage