Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Use a temp checkout path for automation when building docs (#2902)
Madison Swain-Bowdend34aeebae6a6
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.ymlindex c3575df56..9b93ee543 100644--- a/.github/workflows/ci_cd.yml+++ b/.github/workflows/ci_cd.yml@@ -814,6 +814,7 @@ jobs:uses: actions/checkout@v3with:ref: gh-pages+ path: gh-pages- name: Checkout automations from repositoryuses: actions/checkout@v3@@ -824,12 +825,12 @@ jobs:if: github.event_name == 'push'run: |mv /tmp/docs /tmp/gh-pages- mv _preview /tmp/gh-pages/_preview+ mv gh-pages/_preview /tmp/gh-pages/_preview- name: Replace preview of current PRif: github.event_name == 'pull_request'run: |- cp -r . /tmp/gh-pages+ cp -r gh-pages /tmp/gh-pagessudo rm -rf /tmp/gh-pages/_preview/${{ github.event.pull_request.number }}mv /tmp/docs /tmp/gh-pages/_preview/${{ github.event.pull_request.number }}diff --git a/documentation/meta/ci_cd/jobs/documentation.md b/documentation/meta/ci_cd/jobs/documentation.mdindex b168122e0..11f14bb87 100644--- a/documentation/meta/ci_cd/jobs/documentation.md+++ b/documentation/meta/ci_cd/jobs/documentation.md@@ -54,6 +54,9 @@ Documentation is only emitted if all the following conditions are met.that their changes are valid, or were skipped, implying that they have nochanges.+A comment is also published linking to the generated preview, and any new or+modified pages.+## `clean-gh-pages`This job is executed when a PR is closed