forked from mapproxy/mapproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mapproxy#953 from simonseyock/fix-docs-versions
ci: fix version config for ghpages
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|