From 5a13b7f31a38d3a2db90b4c610ec45031d15e8b0 Mon Sep 17 00:00:00 2001 From: niden Date: Mon, 18 Dec 2023 14:53:26 -0600 Subject: [PATCH] trying a calculation of version --- .github/workflows/deploy-documents.yml | 7 +++++-- VERSION | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 VERSION diff --git a/.github/workflows/deploy-documents.yml b/.github/workflows/deploy-documents.yml index 4467219fd..9258bacdb 100644 --- a/.github/workflows/deploy-documents.yml +++ b/.github/workflows/deploy-documents.yml @@ -2,7 +2,6 @@ name: Deploy Documents env: PYTHON_VERSION: "3.9" - DOCS_VERSION: "5.5" on: push: @@ -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 diff --git a/VERSION b/VERSION new file mode 100644 index 000000000..c40e547fc --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +5.4|