We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a967c4 + e00d254 commit e37259fCopy full SHA for e37259f
.github/workflows/docs.yml
@@ -1,6 +1,7 @@
1
name: Update Docs
2
3
on:
4
+ workflow_dispatch:
5
push:
6
tags:
7
- '*'
@@ -20,7 +21,8 @@ jobs:
20
21
- name: Update docs
22
run: |
23
cd master-branch
- version="${GITHUB_REF#refs/tags/}"
24
+ git fetch --prune --unshallow --tags
25
+ version="$(git describe --abbrev=0 --tags)"
26
27
for v in `sort -rV <(printf '%s\n%s' "${version}" "$(ls ../docs-branch/versions)")`; do
28
base="$(basename "${v}")"
@@ -32,6 +34,7 @@ jobs:
32
34
33
35
cd ../docs-branch
36
mkdir -p versions
37
+ [[ -e "versions/${version}" ]] && rm -rf "versions/${version}"
38
mv ../docs-perm "versions/${version}"
39
mv versions .git ../docs
40
cd ../docs
0 commit comments