Skip to content

Commit

Permalink
Merge pull request mapproxy#953 from simonseyock/fix-docs-versions
Browse files Browse the repository at this point in the history
ci: fix version config for ghpages
  • Loading branch information
weskamm authored Jul 17, 2024
2 parents 52dad42 + 2f46f34 commit e170438
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ jobs:
# read existing versions from gh-pages branch, add new version, sort, dedupe and write results to config/versions.json
run: |
mkdir config
echo -e "${{ github.ref_name }}\n$(git show gh-pages:config/versions.json | jq -r '.[]')" \
| sort -V | uniq | jq -R -s -c 'split("\n")[:-1]' > config/versions.json
git show gh-pages:docs/config/versions.json \
| jq -r '(. + ["${{ github.ref_name }}"])[]' \
| sort -V \
| uniq \
| jq -R -s -c 'split("\n")[:-1]' \
> docs/config/versions.json
- name: Deploy config folder to GitHub Pages
uses: JamesIves/[email protected]
Expand Down

0 comments on commit e170438

Please sign in to comment.