mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 08:30:46 -05:00
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
name: SPT Release Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
Build Server:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: refringe/spt-build-server:0.0.1
|
|
steps:
|
|
- name: Versions
|
|
run: |
|
|
echo "Git version:" && git --version
|
|
echo "Git LFS version:" && git-lfs --version
|
|
echo "Node.js version:" && node --version
|
|
echo "NPM version:" && npm --version
|
|
|
|
- name: Cache
|
|
id: server-cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ./server
|
|
key: server-${{ gitea.sha }}
|
|
restore-keys: server-
|
|
|
|
- name: Clone
|
|
if: steps.server-cache.outputs.cache-hit != 'true'
|
|
run: |
|
|
rm -rf ./server
|
|
git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch 3.8.0-BE --depth 1 ./server
|
|
|
|
- name: Pull LFS Files
|
|
if: steps.server-cache.outputs.cache-hit != 'true'
|
|
run: |
|
|
cd ./server
|
|
git lfs pull && git lfs ls-files
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
cd ./server/project
|
|
npm install
|
|
|
|
- name: Build Server
|
|
run: |
|
|
cd ./server/project
|
|
npm run build:bleeding
|
|
|
|
# find build type
|
|
# npm install
|
|
# npm build:type
|