mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 09:50:45 -05:00
Bash it
This commit is contained in:
parent
40ffb49828
commit
8c143816cf
@ -34,6 +34,7 @@ jobs:
|
|||||||
echo "::set-output name=is_nightly::false"
|
echo "::set-output name=is_nightly::false"
|
||||||
echo "::set-output name=target_tag::3.8.0-BE-20240308"
|
echo "::set-output name=target_tag::3.8.0-BE-20240308"
|
||||||
fi
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Check Existence
|
- name: Check Existence
|
||||||
id: check-existence
|
id: check-existence
|
||||||
@ -68,12 +69,14 @@ jobs:
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
echo "::set-output name=proceed::${PROCEED}"
|
echo "::set-output name=proceed::${PROCEED}"
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Halt Workflow if Necessary
|
- name: Halt Workflow if Necessary
|
||||||
if: steps.check-existence.outputs.proceed == 'false'
|
if: steps.check-existence.outputs.proceed == 'false'
|
||||||
run: |
|
run: |
|
||||||
echo "Required branch/tag not found in one or more repositories, halting workflow."
|
echo "Required branch/tag not found in one or more repositories, halting workflow."
|
||||||
exit 1
|
exit 1
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Extract Versions
|
- name: Extract Versions
|
||||||
id: versions
|
id: versions
|
||||||
@ -126,11 +129,13 @@ jobs:
|
|||||||
echo "Cloning tag $TAG"
|
echo "Cloning tag $TAG"
|
||||||
git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch "$TAG" --depth 1 /workspace/refringe/Build/server
|
git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch "$TAG" --depth 1 /workspace/refringe/Build/server
|
||||||
fi
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Pull LFS Files
|
- name: Pull LFS Files
|
||||||
run: |
|
run: |
|
||||||
cd /workspace/refringe/Build/server
|
cd /workspace/refringe/Build/server
|
||||||
git lfs pull && git lfs ls-files
|
git lfs pull && git lfs ls-files
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Runner Debug Information
|
- name: Runner Debug Information
|
||||||
run: |
|
run: |
|
||||||
@ -142,6 +147,7 @@ jobs:
|
|||||||
echo "Latest Commit Hash: $(git rev-parse HEAD)"
|
echo "Latest Commit Hash: $(git rev-parse HEAD)"
|
||||||
echo "Associated Tags: $(git tag --contains HEAD)"
|
echo "Associated Tags: $(git tag --contains HEAD)"
|
||||||
echo "Last Commit Message:" && git log -1 --pretty=%B
|
echo "Last Commit Message:" && git log -1 --pretty=%B
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Determine Build Type
|
- name: Determine Build Type
|
||||||
id: build-type
|
id: build-type
|
||||||
@ -178,6 +184,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd /workspace/refringe/Build/server/project
|
cd /workspace/refringe/Build/server/project
|
||||||
npm install
|
npm install
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Build Server
|
- name: Build Server
|
||||||
run: |
|
run: |
|
||||||
@ -216,6 +223,7 @@ jobs:
|
|||||||
echo "Cloning modules from tag $TAG"
|
echo "Cloning modules from tag $TAG"
|
||||||
git clone https://dev.sp-tarkov.com/SPT-AKI/Modules.git --branch "$TAG" --depth 1 /workspace/refringe/Build/modules
|
git clone https://dev.sp-tarkov.com/SPT-AKI/Modules.git --branch "$TAG" --depth 1 /workspace/refringe/Build/modules
|
||||||
fi
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Download Client Module Package
|
- name: Download Client Module Package
|
||||||
run: |
|
run: |
|
||||||
@ -284,6 +292,7 @@ jobs:
|
|||||||
echo "Cloning launcher from tag $TAG"
|
echo "Cloning launcher from tag $TAG"
|
||||||
git clone https://dev.sp-tarkov.com/SPT-AKI/Launcher.git --branch "$TAG" --depth 1 /workspace/refringe/Build/launcher
|
git clone https://dev.sp-tarkov.com/SPT-AKI/Launcher.git --branch "$TAG" --depth 1 /workspace/refringe/Build/launcher
|
||||||
fi
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Build Launcher
|
- name: Build Launcher
|
||||||
run: |
|
run: |
|
||||||
@ -315,6 +324,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -rf /workspace/refringe/Build/release /workspace/refringe/Build/build
|
rm -rf /workspace/refringe/Build/release /workspace/refringe/Build/build
|
||||||
mkdir -p /workspace/refringe/Build/release
|
mkdir -p /workspace/refringe/Build/release
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Download Server Artifact
|
- name: Download Server Artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user