1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul-website synced 2024-10-31 21:33:09 +00:00
strimertul-website/.forgejo/workflows/deploy.yaml

36 lines
793 B
YAML
Raw Normal View History

2024-04-27 17:26:25 +00:00
name: Deploy to Artifacts
on:
push:
branches:
- main
jobs:
deploy:
runs-on: docker
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v3
with:
hugo-version: "0.125.4"
2024-04-27 17:27:14 +00:00
extended: true
2024-04-27 17:26:25 +00:00
- name: Build
run: hugo --minify
- name: Deploy to MinIO
uses: https://github.com/yakubique/minio-upload@v1.1.3
with:
endpoint: https://artifacts.fromouter.space
access_key: ${{ secrets.MINIO_ACCESS }}
secret_key: ${{ secrets.MINIO_SECRET }}
bucket: strimertul-website
2024-04-27 17:27:52 +00:00
source: ./public/
2024-04-27 17:26:25 +00:00
target: /
recursive: true