Skip to content

Commit

Permalink
trying a calculation of version
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Dec 18, 2023
1 parent 6a35694 commit 5a13b7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Deploy Documents

env:
PYTHON_VERSION: "3.9"
DOCS_VERSION: "5.5"

on:
push:
Expand Down Expand Up @@ -56,7 +55,11 @@ jobs:
#
- name: Determine versioning parameters
id: determine-versioning
run: echo 'data={"version":"${{ env.DOCS_VERSION }}", "alias":"latest"}' >> $GITHUB_OUTPUT
run: |
LINE=$(head -n 1 ./VERSION)
VERSION="${LINE%|*}"
ALIAS="${LINE#*|}"
echo 'data={"version":"$VERSION", "alias":"$ALIAS"}' >> $GITHUB_OUTPUT
- name: Deploy
if: fromJson(steps.determine-versioning.outputs.data).version != null
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.4|

0 comments on commit 5a13b7f

Please sign in to comment.