mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-19 13:57:51 -04:00
🔥 Cleanup after upgrade for Docs Previews GitHub Action (#2248)
* 🔧 Upload docs artifacts even on push to avoid breaking Preview Docs * 🔥 Remove replaced GitHub Action get-artifact * 🔥 Remove GitHub Action Watch Docs Previews, replaced with Preview Docs * 🔥 Remove commented backup configs in Preview Docs GitHub Action * 🔥 Remove no longer needed utils scripts
This commit is contained in:
committed by
GitHub
parent
c75c13c3b0
commit
e1755f4fa6
2
.github/workflows/build-docs.yml
vendored
2
.github/workflows/build-docs.yml
vendored
@@ -23,10 +23,8 @@ 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
|
||||
path: ./docs.zip
|
||||
|
||||
18
.github/workflows/preview-docs.yml
vendored
18
.github/workflows/preview-docs.yml
vendored
@@ -5,30 +5,12 @@ on:
|
||||
- Build Docs
|
||||
types:
|
||||
- completed
|
||||
# workflow_dispatch:
|
||||
# inputs:
|
||||
# pr:
|
||||
# description: Pull Request number
|
||||
# required: true
|
||||
# name:
|
||||
# description: Artifact name for zip file with docs
|
||||
# required: true
|
||||
# commit:
|
||||
# description: Commit SHA hash
|
||||
# required: true
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
# - uses: ./.github/actions/get-artifact
|
||||
# with:
|
||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# name: ${{ github.event.inputs.name }}
|
||||
# path: ./archive.zip
|
||||
# - name: Unzip docs
|
||||
# run: bash ./scripts/unzip-docs.sh
|
||||
- name: Download Artifact Docs
|
||||
uses: dawidd6/action-download-artifact@v2.9.0
|
||||
with:
|
||||
|
||||
13
.github/workflows/watch-docs-previews.yml
vendored
13
.github/workflows/watch-docs-previews.yml
vendored
@@ -1,13 +0,0 @@
|
||||
# name: Watch Docs Previews
|
||||
# on:
|
||||
# schedule:
|
||||
# - cron: "0 * * * *"
|
||||
|
||||
# jobs:
|
||||
# deploy:
|
||||
# runs-on: ubuntu-18.04
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: ./.github/actions/watch-previews
|
||||
# with:
|
||||
# token: ${{ secrets.ACTIONS_TOKEN }}
|
||||
Reference in New Issue
Block a user