blog/.forgejo/workflows/publish.yaml
asonix cc6fbb9f92
All checks were successful
/ publish (push) Successful in 8s
Recursive
2024-02-10 13:55:16 -06:00

30 lines
701 B
YAML

on:
push:
branches:
- main
jobs:
publish:
runs-on: base-image
steps:
-
name: Checkout Project
uses: https://github.com/actions/checkout@v4
-
name: Install Zola
uses: https://github.com/taiki-e/install-action@v2
with:
tool: zola@0.18.0
-
name: Build Site
run: zola build
-
name: Publish to Garage
run: |
mc alias set asonix_dog \
${{ vars.GARAGE_ENDPOINT }} \
${{ secrets.GARAGE_KEY_ID }} \
${{ secrets.GARAGE_SECRET_KEY }} \
--api S3v4
mc cp public/ asonix_dog/${{ vars.GARAGE_BUCKET_NAME }} --recursive