mziesel.com/.gitea/workflows/hugo.yaml
Mans Ziesel 83c57fafad
Some checks failed
/ deploy (push) Failing after 24s
Update .gitea/workflows/hugo.yaml
2023-07-08 16:56:33 +00:00

46 lines
1.2 KiB
YAML

on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v2
with:
hugo-version: '0.111.3'
# extended: true
- name: Build site
run: hugo --minify
- name: Create tarfile
run: tar -cf website.tar public
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: website-files.tar
path: website.tar
- name: Test
run: ls -la ; pwd ; ls -la /root/.cache/act/mans/***/public
- name: Deploy to Garage
uses: https://github.com/mamal72/minio-perfect-deploy-action@main
with:
endpoint: ${{ secrets.S3_ENDPOINT }}
access_key: ${{ secrets.S3_ACCESS_KEY }}
secret_key: ${{ secrets.S3_SECRET_KEY }}
bucket: ${{ secrets.S3_BUCKET }}
source_dir: 'public'
target_dir: '/'