Update .gitea/workflows/hugo.yaml
All checks were successful
/ deploy (push) Successful in 58s

This commit is contained in:
Mans Ziesel 2023-09-30 18:02:41 +00:00
parent fc7c63e296
commit 9086ac7096

View File

@ -21,9 +21,19 @@ jobs:
- name: Build site - name: Build site
run: hugo --minify 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: Setup Minio client - name: Setup Minio client
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 }} 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 - name: Deploy to Garage
run: ./mc mirror --remove --overwrite ./public/ deploy/${{ secrets.S3_BUCKET }} run: ./mc mirror --remove --overwrite ./public/ deploy/${{ secrets.S3_BUCKET }}