Create Build-Development.yml

This commit is contained in:
Julian Lechner
2025-07-07 15:09:27 +02:00
committed by GitHub
parent 61a95e0dc7
commit 0c60402a30
+40
View File
@@ -0,0 +1,40 @@
name: Build Production
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Repository auschecken
uses: actions/checkout@v4
- name: Node.js v22.16.0 einrichten
uses: actions/setup-node@v4
with:
node-version: '22.16.0'
- name: Abhängigkeiten installieren
run: npm install
- name: Build ausführen
run: npm run buildDevelopment
- name: Version aus package.json auslesen
id: get_version
run: |
version=$(node -p "require('./package.json').version")
echo "VERSION=$version" >> $GITHUB_ENV
- name: dist-Ordner umbenennen
run: mv dist "${{ env.VERSION }}"
- name: Version-Ordner zippen
run: zip -r "${{ env.VERSION }}-DEV.zip" "${{ env.VERSION }}"
- name: Build-Artefakt hochladen
uses: actions/upload-artifact@v4
with:
name: ${{ env.VERSION }}
path: ${{ env.VERSION }}