From 7cd441a87693e967728d3cf314ead24549e08dd4 Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Wed, 17 Apr 2024 06:41:22 +0200 Subject: [PATCH] test --- .gitea/workflows/pipeline-test.yaml | 32 +++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/pipeline-test.yaml b/.gitea/workflows/pipeline-test.yaml index 5639d48..c186093 100644 --- a/.gitea/workflows/pipeline-test.yaml +++ b/.gitea/workflows/pipeline-test.yaml @@ -1,10 +1,24 @@ -stages: - - greeting +name: Build Hugo Site -greeting_job: - stage: greeting - image: alpine:latest # Using Alpine Linux for a lightweight container - script: - - echo "🎉 Hello World." - only: - - master # This job runs only on pushes to the master branch +on: + push: + branches: + - main # or master, depending on your main branch's name + pull_request: + branches: + - main # Enables the action on pull requests to the main branch + +jobs: + build: + runs-on: ubuntu-latest # Specifies the runner environment + + steps: + - uses: actions/checkout@v2 # Checks out a copy of your repository + + - name: Set up Hugo + uses: peaceiris/actions-hugo@v2 # This action sets up Hugo + with: + hugo-version: '0.92.0' # Specify the Hugo version you need + + - name: Build Hugo site + run: hugo --minify # Commands to build your Hugo site