From bba14557d774afb2e11d06b494f744ba259f0c07 Mon Sep 17 00:00:00 2001 From: Jamil Bou Kheir Date: Mon, 17 Jan 2022 22:33:50 -0800 Subject: [PATCH 1/2] Fix tag order --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d864b9a9f..2ae30673b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -213,7 +213,7 @@ jobs: run: | echo ${{ steps.get_version.outputs.VERSION }} > docs/assets/versions.txt tags=`git ls-tree --name-only origin/gh-pages | egrep "^((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)$"` - echo $tags | tr " " "\n" >> docs/assets/versions.txt + echo $tags | tr " " "\n" | sort -Vr >> docs/assets/versions.txt - name: Build jekyll site run: | cd docs/ From c1c861e4f353e2334820179df08f16a81f9e3780 Mon Sep 17 00:00:00 2001 From: Jamil Bou Kheir Date: Mon, 17 Jan 2022 23:05:49 -0800 Subject: [PATCH 2/2] clean exclude --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ae30673b..67ca690f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -234,11 +234,13 @@ jobs: branch: gh-pages folder: docs/_latest target-folder: . - clean: false + clean: true + clean-exclude: | + *.*.*/ - name: Publish Versioned Docs uses: JamesIves/github-pages-deploy-action@v4.2.2 with: branch: gh-pages folder: docs/${{ steps.get_version.outputs.VERSION }} target-folder: ${{ steps.get_version.outputs.VERSION }} - clean: false + clean: true