mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 05:10:47 -05:00
Release name now uses the SPT version instead of the tag name.
This commit is contained in:
parent
aafcb84295
commit
c0f379bb02
@ -139,6 +139,7 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: refringe/spt-build-dotnet:1.0.0
|
image: refringe/spt-build-dotnet:1.0.0
|
||||||
outputs:
|
outputs:
|
||||||
|
spt_version: ${{ steps.extract-client-version.outputs.spt_version }}
|
||||||
client_version: ${{ steps.extract-client-version.outputs.client_version }}
|
client_version: ${{ steps.extract-client-version.outputs.client_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
@ -163,10 +164,12 @@ jobs:
|
|||||||
id: extract-client-version
|
id: extract-client-version
|
||||||
run: |
|
run: |
|
||||||
cd /workspace/refringe/Build/server-core/project/assets/configs
|
cd /workspace/refringe/Build/server-core/project/assets/configs
|
||||||
|
SPT_VERSION=$(jq -r '.akiVersion' core.json)
|
||||||
FULL_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
|
FULL_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
|
||||||
CLIENT_VERSION=${FULL_VERSION##*.}
|
CLIENT_VERSION=${FULL_VERSION##*.}
|
||||||
echo "Extracted Client Version: $CLIENT_VERSION"
|
echo "Extracted Client Version: $CLIENT_VERSION"
|
||||||
echo "::set-output name=client_version::${CLIENT_VERSION}"
|
echo "::set-output name=client_version::${CLIENT_VERSION}"
|
||||||
|
echo "::set-output name=spt_version::${SPT_VERSION}"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Download Client Module Package
|
- name: Download Client Module Package
|
||||||
@ -290,9 +293,8 @@ jobs:
|
|||||||
- name: Generate Release Filename
|
- name: Generate Release Filename
|
||||||
id: generate-filename
|
id: generate-filename
|
||||||
run: |
|
run: |
|
||||||
# TODO: Instead of the tag, the version number should be parsed.
|
|
||||||
TARGET_TAG=${{ needs.check-tag-exists.outputs.target_tag }}
|
|
||||||
BUILD_TYPE=${{ needs.build-server.outputs.build_type }}
|
BUILD_TYPE=${{ needs.build-server.outputs.build_type }}
|
||||||
|
SPT_VERSION${{ needs.build-modules.outputs.spt_version }}
|
||||||
CLIENT_VERSION=${{ needs.build-modules.outputs.client_version }}
|
CLIENT_VERSION=${{ needs.build-modules.outputs.client_version }}
|
||||||
DATE=$(date +%Y%m%d)
|
DATE=$(date +%Y%m%d)
|
||||||
|
|
||||||
@ -301,9 +303,9 @@ jobs:
|
|||||||
|
|
||||||
# Conditionally format the FILENAME based on BUILD_TYPE
|
# Conditionally format the FILENAME based on BUILD_TYPE
|
||||||
if [ "$BUILD_TYPE" = "release" ]; then
|
if [ "$BUILD_TYPE" = "release" ]; then
|
||||||
FILENAME="SPT-${TARGET_TAG}-${CLIENT_VERSION}-${DATE}.7z"
|
FILENAME="SPT-${SPT_VERSION}-${CLIENT_VERSION}-${DATE}.7z"
|
||||||
else
|
else
|
||||||
FILENAME="SPT-${UPPER_BUILD_TYPE}-${TARGET_TAG}-${CLIENT_VERSION}-${DATE}.7z"
|
FILENAME="SPT-${UPPER_BUILD_TYPE}-${SPT_VERSION}-${CLIENT_VERSION}-${DATE}.7z"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=filename::${FILENAME}"
|
echo "::set-output name=filename::${FILENAME}"
|
||||||
@ -316,12 +318,6 @@ jobs:
|
|||||||
echo "Release compressed as ${{ steps.generate-filename.outputs.filename }}."
|
echo "Release compressed as ${{ steps.generate-filename.outputs.filename }}."
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Echo Release Filename
|
|
||||||
run: |
|
|
||||||
echo "/workspace/refringe/Build/${{ steps.generate-filename.outputs.filename }}"
|
|
||||||
echo "/spt-release/${{ steps.generate-filename.outputs.filename }}"
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Upload Release
|
- name: Upload Release
|
||||||
uses: Difegue/action-megacmd@master
|
uses: Difegue/action-megacmd@master
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user