Add test build CI

This commit is contained in:
2024-08-25 17:02:27 +02:00
parent 080970925b
commit 6dee7a2bc5

31
.github/workflows/deploy-test.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Deploy to server
on:
push:
branches:
- main
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: |
npm ci
- name: Run build for production
run: |
npm run build