forked from BetonQuest/BetonQuest
-
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.
added versioning of tutorials sub repository
- Loading branch information
Showing
6 changed files
with
30 additions
and
16 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 |
---|---|---|
|
@@ -197,6 +197,11 @@ jobs: | |
DATE="$(date +%Y-%m-%d)" | ||
sed -i "s~\${maven\.build\.timestamp}~$DATE~g" ./CHANGELOG.md | ||
echo "$(cat ./CHANGELOG.md)" >> './docs/Documentation/CHANGELOG.md' | ||
- name: Set ref in download commands | ||
run: | | ||
GIT_SHA="$(cd docs/_tutorials && git rev-parse HEAD)" | ||
if [ $VERSION_TYPE == 'release' ]; then REFERENCE="${{ github.ref }}"; else REFERENCE="${GIT_SHA}" fi | ||
find docs -type f -exec sed -i "s#/bq download BetonQuest/Quest-Tutorials \${ref} QuestPackages #/bq download BetonQuest/Quest-Tutorials ${REFERENCE} QuestPackages #" {} + | ||
- name: Set user feedback form version in mkdocs.yml | ||
run: | | ||
sed -i "s~%VERSION%~${VERSION}~g" ./mkdocs.yml | ||
|
@@ -290,7 +295,6 @@ jobs: | |
echo "upload_path=$UPLOAD_PATH" >> $GITHUB_OUTPUT | ||
env: | ||
REPOSITORY_URL: ${{ vars.REPOSITORY_URL }} | ||
|
||
deploy-docs: | ||
name: Deploy Docs | ||
concurrency: gh-pages-deploy | ||
|
@@ -309,6 +313,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: ${{ env.VERSION_TYPE == 'release' }} | ||
- name: Create LFS file list | ||
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | ||
- name: Restore LFS cache | ||
|
@@ -386,6 +391,15 @@ jobs: | |
mike delete "$TWO_DIGIT_VERSION-DEV" | ||
fi | ||
mike deploy "${FLAGS[@]}" "${VERSION[@]}" | ||
- name: Set version Tag for Quest-Tutorials submodule | ||
if: "env.VERSION_TYPE == 'release'" | ||
run: | | ||
git config --global user.name "BetonQuest-Bot" | ||
git config --global user.email "[email protected]" | ||
cd docs/_tutorials | ||
git tag v${VERSION} | ||
git push origin v${VERSION} | ||
create-release: | ||
name: Create GitHub Release | ||
if: "needs.prepare.outputs.VERSION_TYPE == 'release' && needs.deploy-artifacts.result == 'success' && needs.deploy-docs.result == 'success'" | ||
|
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
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
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
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
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