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

39 lines
733 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
steps:
2024-02-29 21:58:10 -05:00
- name: Check-out Server Project
2024-02-29 21:47:44 -05:00
uses: actions/checkout@v4
2024-02-29 21:25:58 -05:00
with:
2024-02-29 22:08:52 -05:00
repository: 'refringe/Server'
2024-02-29 21:25:58 -05:00
fetch-depth: 0
2024-02-29 21:58:10 -05:00
lfs: true
2024-02-29 21:25:58 -05:00
- name: Setup Node.js
2024-02-29 21:44:53 -05:00
uses: actions/setup-node@v4
2024-02-29 21:25:58 -05:00
with:
node-version: '18.15.0'
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