add build action config
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
name: Production Build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- productive
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: webserver
|
||||
steps:
|
||||
- name: Code auschecken
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Abhängigkeiten installieren
|
||||
run: npm install
|
||||
|
||||
- name: Production-Build generieren
|
||||
run: npm run build
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
name: Staging Build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- staging
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: webserver
|
||||
steps:
|
||||
- name: Code auschecken
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Abhängigkeiten installieren
|
||||
run: npm install
|
||||
|
||||
- name: Staging-Build generieren
|
||||
run: npm run build -- --configuration=staging
|
||||
|
||||
Reference in New Issue
Block a user