From 6c2a52122937f158558d2c46e6d42a39eb9b230b Mon Sep 17 00:00:00 2001 From: Lucas Hahmann Date: Tue, 25 Nov 2025 21:20:00 +0100 Subject: [PATCH] First attemps with the gitea runner --- .gitea/workflows/build-deploy.yaml | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/build-deploy.yaml diff --git a/.gitea/workflows/build-deploy.yaml b/.gitea/workflows/build-deploy.yaml new file mode 100644 index 0000000..534f282 --- /dev/null +++ b/.gitea/workflows/build-deploy.yaml @@ -0,0 +1,43 @@ +name: Gitea Actions - Hugo Deploy +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: + push: + branches: + - master +jobs: + Hugo-Deploy: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + + - name: Check out repository code + uses: actions/checkout@v4 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: "0.134.1" # or remove this for the latest + extended: true + + - name: List files in the repository + run: | + ls + + - name: Build + run: hugo + + - name: Deploy + run: hugo deploy + env: + AWS_REGION: "ap-southeast-2" + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + + - run: echo "🍏 This job's status is ${{ job.status }}."