added dev build and root index symlink
All checks were successful
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Website (push) Successful in 39s
Build and Deploy Website / Deploy Dev Website (push) Successful in 10s

This commit is contained in:
Samuel Philipp 2024-04-01 15:13:16 +02:00
parent 3c4944bacb
commit a915cee61c
10 changed files with 41 additions and 14 deletions

View file

@ -3,11 +3,28 @@ name: Build and Deploy Website
on: [push]
jobs:
build-dev:
name: Build Website
runs-on: docker
container:
image: node:lts
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm install
- name: Build Website
run: npm run build:dev
- uses: actions/upload-artifact@v3
with:
name: build
path: dist/
build:
name: Build Website
runs-on: docker
container:
image: node:lts
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
@ -23,7 +40,7 @@ jobs:
runs-on: docker
container:
image: node:lts-alpine
needs: [build]
needs: [build-dev]
if: github.ref == 'refs/heads/develop'
steps:
- uses: actions/download-artifact@v3