mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 05:50:46 -05:00
Update build workflow to use actions/checkout and actions/setup-node***
This commit is contained in:
parent
c851ed3336
commit
74218955a4
@ -7,15 +7,35 @@ 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: Checkout Server Project
|
||||||
run: git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch 3.8.0-BE --depth 1 /workspace/server
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: 'refringe/Server'
|
||||||
|
ref: '3.8.0-BE'
|
||||||
|
fetch-depth: 0
|
||||||
|
lfs: true
|
||||||
|
|
||||||
- name: Pull Server LFS Files
|
- name: Checkout Server Project
|
||||||
run: git lfs pull && git lfs ls-files
|
uses: actions/setup-node@v4
|
||||||
working-directory: /workspace/server
|
with:
|
||||||
|
node-version: '20.10'
|
||||||
|
|
||||||
|
- 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user