fix zip structure?
All checks were successful
Build & publish docs (rc + release) / publish (push) Successful in 8s
All checks were successful
Build & publish docs (rc + release) / publish (push) Successful in 8s
This commit is contained in:
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -45,7 +45,7 @@ jobs:
|
|||||||
|
|
||||||
OUT_BASE="${RUNNER_TEMP}/mkdocs_out"
|
OUT_BASE="${RUNNER_TEMP}/mkdocs_out"
|
||||||
SITE="${OUT_BASE}/site"
|
SITE="${OUT_BASE}/site"
|
||||||
SITE_OFFLINE="${OUT_BASE}/site_offline"
|
SITE_OFFLINE="${OUT_BASE}/site_offline/${GITHUB_REF_NAME}"
|
||||||
|
|
||||||
rm -rf "${OUT_BASE}"
|
rm -rf "${OUT_BASE}"
|
||||||
mkdir -p "${SITE}" "${SITE_OFFLINE}"
|
mkdir -p "${SITE}" "${SITE_OFFLINE}"
|
||||||
@@ -56,8 +56,8 @@ jobs:
|
|||||||
- name: Zip offline site
|
- name: Zip offline site
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd "${RUNNER_TEMP}/mkdocs_out"
|
cd "${RUNNER_TEMP}/mkdocs_out/site_offline/"
|
||||||
zip -r "${GITHUB_REF_NAME}.zip" site_offline
|
zip -r "${GITHUB_REF_NAME}.zip" ./${GITHUB_REF_NAME}
|
||||||
|
|
||||||
- name: Publish prerelease
|
- name: Publish prerelease
|
||||||
if: startsWith(github.ref_name, 'rc')
|
if: startsWith(github.ref_name, 'rc')
|
||||||
|
|||||||
Reference in New Issue
Block a user