Refactor GitHub Actions workflow to streamline version retrieval process

(cherry picked from commit 4fe7e71a43)
This commit is contained in:
OMGeeky
2025-02-16 00:39:10 +01:00
parent 6686aa6c07
commit a5492b16ac

View File

@@ -11,6 +11,18 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Get Version
id: get_version
shell: bash
run: |
pwd
echo "Reading version from file:"
cat packaging/ATCS_latest
VERSION=$(cat packaging/ATCS_latest | sed 's/^v//')
echo "Processed version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Environment variable set to: $VERSION"
- name: Set up JDK
uses: actions/setup-java@v2
with:
@@ -40,17 +52,6 @@ jobs:
echo "Checking installer artifacts:"
ls -la
- name: Get Version
id: get_version
shell: bash
run: |
echo "Reading version from file:"
cat packaging/ATCS_latest
VERSION=$(cat packaging/ATCS_latest | sed 's/^v//')
echo "Processed version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Environment variable set to: $VERSION"
- name: Upload ZIP to Release
uses: actions/upload-release-asset@v1
env: