Skip to content

Commit

Permalink
updating latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Dec 18, 2023
1 parent b3566be commit e74feb1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/deploy-documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,37 @@ jobs:
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Create all generated documentation content
run: mkdocs build

# - name: Create all generated documentation content
# run: mkdocs build
#
- name: Determine versioning parameters
id: determine-versioning
run: echo 'data={"version":"5.4", "alias":"latest"}' >> $GITHUB_OUTPUT
run: |
# Read the first line from the VERSION file
LINE=$(head -n 1 ./VERSION)
# Extract version and alias using parameter expansion
VERSION="${LINE%%|*}"
ALIAS="${LINE#*|}"
# Print the extracted values for verification
echo "Version: $VERSION"
echo "Alias: $ALIAS"
echo "PH_DOCS_VERSION=$VERSION" >> $GITHUB_ENV
echo "PH_DOCS_ALIAS=$ALIAS" >> $GITHUB_ENV
- name: Deploy
if: fromJson(steps.determine-versioning.outputs.data).version != null
if: ${{ env.PH_DOCS_VERSION }} != null
run: |
# Publishing implies creating a git commit on the production branch,
# we let @phalconbot own these commits.
git config user.name niden
git config user.email nikos@niden.net
git fetch --no-tags --prune --depth=1 origin +refs/heads/gh-pages:refs/remotes/origin/gh-pages
git fetch --no-tags --prune --depth=1 origin +refs/heads/production:refs/remotes/origin/production
mike deploy \
--update-aliases \
--branch production \
--push \
--remote origin \
${{ fromJson(steps.determine-versioning.outputs.data).version }} \
${{ fromJson(steps.determine-versioning.outputs.data).alias }}
${{ env.PH_DOCS_VERSION }} \
${{ env.PH_DOCS_ALIAS }}
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.5|latest

0 comments on commit e74feb1

Please sign in to comment.