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