From 50ca1bfda9c85de5ff37ec700776e775f200f40f Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Wed, 17 Apr 2024 06:44:44 +0200 Subject: [PATCH] added go to the pipeline --- .gitea/workflows/pipeline-test.yaml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/pipeline-test.yaml b/.gitea/workflows/pipeline-test.yaml index c186093..89ce785 100644 --- a/.gitea/workflows/pipeline-test.yaml +++ b/.gitea/workflows/pipeline-test.yaml @@ -3,22 +3,27 @@ name: Build Hugo Site on: push: branches: - - main # or master, depending on your main branch's name + - main # Adjust if your main branch has a different name pull_request: branches: - - main # Enables the action on pull requests to the main branch + - main jobs: build: - runs-on: ubuntu-latest # Specifies the runner environment + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 # Checks out a copy of your repository + - uses: actions/checkout@v2 - - 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: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '1.18' # Specify the version of Go you need, align it with your project requirements - - name: Build Hugo site - run: hugo --minify # Commands to build your Hugo site + - name: Set up Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.92.0' # Specify the Hugo version you need + + - name: Build Hugo site + run: hugo --minify