0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-13 06:50:45 -05:00

Fix Git LFS pull command in build.yaml

This commit is contained in:
Refringe 2024-03-02 14:48:27 -05:00
parent 8318ed4241
commit 5a2e50da81
No known key found for this signature in database
GPG Key ID: DA8524051241DD36

View File

@ -16,14 +16,15 @@ jobs:
run: | run: |
rm -rf ./server rm -rf ./server
git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch 3.8.0-BE --depth 1 ./server git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch 3.8.0-BE --depth 1 ./server
working-path: ./
- name: Pull LFS Files - name: Pull LFS Files
run: git lfs pull && git lfs ls-files run: |
working-path: ./server cd ./server
git lfs pull && git lfs ls-files
- name: Runner Debug Information - name: Runner Debug Information
run: | run: |
cd ./server
echo "Git version: $(git --version)" echo "Git version: $(git --version)"
echo "Git LFS version: $(git-lfs --version)" echo "Git LFS version: $(git-lfs --version)"
echo "Node.js version: $(node --version)" echo "Node.js version: $(node --version)"
@ -32,11 +33,11 @@ jobs:
echo "Associated Tags: $(git tag --contains HEAD)" echo "Associated Tags: $(git tag --contains HEAD)"
echo "Branch Name: $(git branch --show-current)" echo "Branch Name: $(git branch --show-current)"
echo "Last Commit Message: $(git log -1 --pretty=%B)" echo "Last Commit Message: $(git log -1 --pretty=%B)"
working-path: ./server
- name: Cache Keys - name: Cache Keys
id: cache-keys id: cache-keys
run: | run: |
cd ./server
echo "::set-output name=commit_hash::$(git rev-parse HEAD)" echo "::set-output name=commit_hash::$(git rev-parse HEAD)"
TAGS=$(git tag --contains HEAD) TAGS=$(git tag --contains HEAD)
if [[ "$TAGS" == "" ]]; then if [[ "$TAGS" == "" ]]; then
@ -45,7 +46,6 @@ jobs:
echo "::set-output name=tags::${TAGS//[$'\n\r']/}" echo "::set-output name=tags::${TAGS//[$'\n\r']/}"
echo "Commit Hash: ${{ steps.cache-keys.outputs.commit_hash }}" echo "Commit Hash: ${{ steps.cache-keys.outputs.commit_hash }}"
echo "Tags: ${{ steps.cache-keys.outputs.tags }}" echo "Tags: ${{ steps.cache-keys.outputs.tags }}"
working-path: ./server
- name: Build Cache - name: Build Cache
id: build-cache id: build-cache
@ -59,12 +59,16 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
if: steps.build-cache.outputs.cache-hit != 'true' if: steps.build-cache.outputs.cache-hit != 'true'
run: npm install run: |
working-path: ./server/project cd ./server/project
npm install
- name: Build Server - name: Build Server
if: steps.build-cache.outputs.cache-hit != 'true' if: steps.build-cache.outputs.cache-hit != 'true'
run: npm run build:bleeding run: |
working-path: ./server/project cd ./server/project
npm run build:bleeding
# TODO: find build type # find build type
# npm install
# npm build:type