0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 22:50:46 -05:00

Update build.yaml workflow

This commit is contained in:
Refringe 2024-03-01 16:35:27 -05:00
parent 74218955a4
commit cfaf7253cb
No known key found for this signature in database
GPG Key ID: DA8524051241DD36

View File

@ -7,35 +7,26 @@ on:
branches: [ main ]
jobs:
build-server:
Build Server:
runs-on: ubuntu-latest
container:
image: refringe/spt-build-environment:1.0.3
steps:
- name: Checkout Server Project
uses: actions/checkout@v4
- name: Server Cache
id: server-cache
uses: actions/cache@v4
with:
repository: 'refringe/Server'
ref: '3.8.0-BE'
fetch-depth: 0
lfs: true
path: /workspace/server
key: server-${{ gitea.sha }}
restore-keys: server-
- name: Checkout Server Project
uses: actions/setup-node@v4
with:
node-version: '20.10'
- name: Clone Server
if: steps.cache-server-project.outputs.cache-hit != 'true'
run: git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch 3.8.0-BE --depth 1 /workspace/server
- name: Install Dependencies
run: npm install
working-directory: ./project
- name: Build Project
run: npm run build
working-directory: ./project
- name: Archive Build
uses: actions/upload-artifact@v4
with:
name: built-artifacts
path: build
- name: Pull Server LFS Files
if: steps.cache-server-project.outputs.cache-hit != 'true'
run: |
cd /workspace/server
git lfs pull && git lfs ls-files