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

44 lines
876 B
YAML
Raw Normal View History

2024-02-29 21:44:53 -05:00
name: SPT Release Build
2024-02-29 21:25:58 -05:00
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
2024-02-29 21:44:53 -05:00
build-server:
2024-02-29 21:25:58 -05:00
runs-on: ubuntu-latest
2024-03-01 11:12:38 -05:00
container:
2024-03-01 12:03:28 -05:00
image: refringe/spt-build-environment:1.0.3
2024-02-29 21:25:58 -05:00
steps:
2024-03-01 11:12:38 -05:00
- name: Checkout Server Project
uses: actions/checkout@v4.1.1
2024-02-29 21:25:58 -05:00
with:
2024-02-29 22:08:52 -05:00
repository: 'refringe/Server'
2024-03-01 12:03:28 -05:00
ref: '3.8.0-BE'
2024-02-29 21:25:58 -05:00
fetch-depth: 0
2024-03-01 11:12:38 -05:00
- name: Checkout Git LFS Objects
run: git lfs checkout
- name: Setup Node & NPM
2024-03-01 11:37:25 -05:00
uses: actions/setup-node@v4
with:
node-version: '20.10.0'
2024-02-29 21:25:58 -05:00
2024-02-29 21:58:10 -05:00
- name: Install dependencies
2024-02-29 21:25:58 -05:00
run: npm install
2024-02-29 21:44:53 -05:00
working-directory: ./project
2024-02-29 21:25:58 -05:00
2024-02-29 21:58:10 -05:00
- name: Build Project
2024-02-29 21:25:58 -05:00
run: npm run build
2024-02-29 21:44:53 -05:00
working-directory: ./project
2024-02-29 21:25:58 -05:00
2024-02-29 21:58:10 -05:00
- name: Archive Build
2024-02-29 21:44:53 -05:00
uses: actions/upload-artifact@v4
2024-02-29 21:25:58 -05:00
with:
name: built-artifacts
path: build