From 9086ac7096445d465eb50e0374b5da2739f395ac Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sat, 30 Sep 2023 18:02:41 +0000 Subject: [PATCH] Update .gitea/workflows/hugo.yaml --- .gitea/workflows/hugo.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/hugo.yaml b/.gitea/workflows/hugo.yaml index 2c60dee..3a0bb4d 100644 --- a/.gitea/workflows/hugo.yaml +++ b/.gitea/workflows/hugo.yaml @@ -21,9 +21,19 @@ 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: 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 }} - name: Deploy to Garage - run: ./mc mirror --remove --overwrite ./public/ deploy/${{ secrets.S3_BUCKET }} \ No newline at end of file + run: ./mc mirror --remove --overwrite ./public/ deploy/${{ secrets.S3_BUCKET }} +