mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-12 13:36:41 +00:00
🚀 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
This commit is contained in:
parent
42f1716b48
commit
8bafe2a482
6 changed files with 3 additions and 16 deletions
4
.github/workflows/build-docs.yml
vendored
4
.github/workflows/build-docs.yml
vendored
|
|
@ -19,10 +19,12 @@ jobs:
|
||||||
- name: Build Docs
|
- name: Build Docs
|
||||||
run: python3.7 ./scripts/docs.py build-all
|
run: python3.7 ./scripts/docs.py build-all
|
||||||
- name: Zip docs
|
- name: Zip docs
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
run: bash ./scripts/zip-docs.sh
|
run: bash ./scripts/zip-docs.sh
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
with:
|
with:
|
||||||
name: docs-zip-${{ github.sha }}
|
name: docs-zip-${{ github.event.pull_request.head.sha }}
|
||||||
path: ./docs.zip
|
path: ./docs.zip
|
||||||
- name: Deploy to Netlify
|
- name: Deploy to Netlify
|
||||||
uses: nwtgck/actions-netlify@v1.1.5
|
uses: nwtgck/actions-netlify@v1.1.5
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3APublish" target="_blank">
|
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Publish/badge.svg" alt="Publish">
|
|
||||||
</a>
|
|
||||||
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
||||||
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3APublish" target="_blank">
|
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Publish/badge.svg" alt="Publish">
|
|
||||||
</a>
|
|
||||||
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
||||||
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3APublish" target="_blank">
|
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Publish/badge.svg" alt="Publish">
|
|
||||||
</a>
|
|
||||||
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
||||||
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3APublish" target="_blank">
|
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Publish/badge.svg" alt="Publish">
|
|
||||||
</a>
|
|
||||||
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
||||||
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
<img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3APublish" target="_blank">
|
|
||||||
<img src="https://github.com/tiangolo/fastapi/workflows/Publish/badge.svg" alt="Publish">
|
|
||||||
</a>
|
|
||||||
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
<a href="https://codecov.io/gh/tiangolo/fastapi" target="_blank">
|
||||||
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
<img src="https://img.shields.io/codecov/c/github/tiangolo/fastapi?color=%2334D058" alt="Coverage">
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue