samuel-philipp.de/.forgejo/workflows/build-deploy.yml
Samuel Philipp aa69f5dd07
Some checks failed
Build and Deploy Website / Build Website (push) Successful in 1m50s
Build and Deploy Website / deploy-dev (push) Failing after 13s
updated workflow
2023-12-06 02:38:03 +01:00

39 lines
850 B
YAML

name: Build and Deploy Website
on:
push:
branches:
- main
- develop
jobs:
build:
name: Build Website
runs-on: docker
container:
image: node:lts
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: npm install
- name: Build English Version
run: npm run build
- name: Build German Version
run: npm run build:de
- uses: actions/upload-artifact@v3
with:
name: build
path: dist/
deploy-dev:
needs: [build]
runs-on: docker
container:
image: alpine
if:
- github.ref == 'refs/heads/develop'
steps:
- uses: actions/download-artifact@v3
- name: Deploy English Version
run: echo "deploy dev en"
- name: Deploy German Version
run: echo "deploy dev de"