blog/.forgejo/workflows/deploy.yml
Peter Kurfer 9062c01346
All checks were successful
Deploy pages / deploy (push) Successful in 1m16s
feat(ci): switch to Garage
2024-05-07 18:19:49 +02:00

32 lines
850 B
YAML

name: Deploy pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"
- uses: https://code.icb4dc0.de/prskr/setup-hugo@main
with:
dart-sass: true
- uses: actions/cache@v4
with:
path: /home/runner/.cache/hugo_cache
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Build & deploy
run: |
hugo mod get
hugo --minify --environment production
hugo deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.GARAGE_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.GARAGE_SECRET_KEY }}