blog/.forgejo/workflows/publish.yaml

30 lines
701 B
YAML
Raw Normal View History

2024-02-10 19:54:27 +00:00
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
2024-02-10 19:55:16 +00:00
mc cp public/ asonix_dog/${{ vars.GARAGE_BUCKET_NAME }} --recursive