Update .gitea/workflows/hugo.yaml
Some checks failed
/ deploy (push) Failing after 25s

This commit is contained in:
Mans Ziesel 2023-07-08 18:18:37 +00:00
parent 24dac43c23
commit 7bc0360807

View File

@ -21,25 +21,13 @@ jobs:
- 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: Setup MC
run: wget https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc && mc alias set deploy ${{ secrets.S3_ENDPOINT }} ${{ secrets.S3_ACCESS_KEY }} ${{ secrets.S3_SECRET_KEY }}
- 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: '/'
run: mc mirror --remove --overwrite ./public/ deploy/mziesel.com