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/