Skip to content

Commit

Permalink
Added logic to add a staging version (#87)
Browse files Browse the repository at this point in the history
* Github action to deploy to Staging (#82)

* added logic to fetch the staging-docs branch and use as default (#86)
  • Loading branch information
andynog authored Dec 1, 2023
1 parent 1f339f2 commit ff25bd8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: make fetch
# Generate _data folder content
- name: Build versions data
run: make versions-data
run: make STAGING_DOCS=true versions-data
# Install Jekyll dependencies
- name: Install dependencies
run: |
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ versions-data:
echo " visible: true" >> _data/versions.yml; \
echo "output_path: dev" > _data/default_version.yml ; \
fi
@if [ "${STAGING_DOCS}" ]; then \
echo "Adding \"staging\" version"; \
echo "- branch: staging-docs" >> _data/versions.yml; \
echo " output_path: staging" >> _data/versions.yml; \
echo " visible: true" >> _data/versions.yml; \
echo "output_path: staging" > _data/default_version.yml ; \
echo "staging-docs staging true" >> VERSIONS ; \
fi
.PHONY: versions-data

check-broken-links:
Expand Down
9 changes: 4 additions & 5 deletions VERSIONS
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
main main false
v1.x v1 false
v0.34.x v0.34 true
v0.37.x v0.37 true
v0.38.x v0.38 true
main main false
v0.34.x v0.34 true
v0.37.x v0.37 true
v0.38.x v0.38 true

0 comments on commit ff25bd8

Please sign in to comment.