From 945016daad7534d6ed4524a0dbeaba2bece2ad0f Mon Sep 17 00:00:00 2001 From: David Lick Date: Sat, 4 May 2024 16:22:13 -0400 Subject: [PATCH] gitea action for build/deploy --- .gitea/workflows/build-and-deploy.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/build-and-deploy.yaml diff --git a/.gitea/workflows/build-and-deploy.yaml b/.gitea/workflows/build-and-deploy.yaml new file mode 100644 index 0000000..7458d6d --- /dev/null +++ b/.gitea/workflows/build-and-deploy.yaml @@ -0,0 +1,21 @@ +name: Build & Deploy to DigitalOcean Space +run-name: ${{ gitea.actor }} is pushing a new build +on: + push: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: jakejarvis/hugo-build-action@v0.111.3 + with: + args: --minify + - uses: BetaHuhn/do-spaces-action@v2 + with: + access_key: ${{ secrets.ACCESS_KEY }} + secret_key: ${{ secrets.SECRET_KEY }} + space_name: ${{ secrets.SPACE_NAME }} + space_region: ${{ secrets.SPACE_REGION }} + source: ./public/