From ebcf97f2fd1663573dc1a094f019ef3321f1573c Mon Sep 17 00:00:00 2001 From: Dennis Thiessen Date: Sat, 15 Mar 2025 21:16:25 +0100 Subject: [PATCH] update deploy worklflow --- .gitea/workflows/build+deploy.yaml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build+deploy.yaml b/.gitea/workflows/build+deploy.yaml index a0cb4a4..3d5091c 100644 --- a/.gitea/workflows/build+deploy.yaml +++ b/.gitea/workflows/build+deploy.yaml @@ -1,16 +1,27 @@ name: Build + Deploy run-name: ${{ gitea.actor }} is deploying this page to production. -on: [push] + +on: + push: + branches: + - main jobs: - Explore-Gitea-Actions: + build: runs-on: ubuntu-latest steps: - - run: echo "Checkout repository first." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "The ${{ gitea.repository }} repository has been cloned to the runner." - - name: List files in the repository + - name: Repository auschecken + uses: actions/checkout@v3 + + - name: Node.js einrichten + uses: actions/setup-node@v3 + with: + node-version: 14 + + - name: Abhängigkeiten installieren run: | - ls ${{ gitea.workspace }} - - run: echo "This job's status is ${{ job.status }}." \ No newline at end of file + npm install + + - name: Gatsby Build + run: | + npm run build \ No newline at end of file