compose-website/.forgejo/workflows/main.yaml
Hugo Renard 8ede28b9d1
Some checks failed
/ build (push) Successful in 20s
/ deploy (push) Failing after 4s
ci: replace gitlab by forgejo
2024-09-26 17:52:14 +02:00

19 lines
607 B
YAML

on: [push]
jobs:
build:
runs-on: native
steps:
- uses: actions/checkout@v4
- name: Nix build
run: nix-shell -p hugo -p go --run "hugo --minify"
- uses: actions/upload-artifact@v3
with:
name: website
path: public/
deploy:
runs-on: native
steps:
- uses: actions/download-artifact@v3
- name: Deploy
if: env.GITHUB_REF_NAME == 'main'
run: MC_HOST_minio=https://${{ secrets.S3_ACCESS_KEY }}:${{ secrets.S3_SECRET_KEY }}@${{ env.S3_ENDPOINT }} mc mirror --overwrite --remove website minio/${{ env.S3_BUCKET }}