diff --git a/.gitea/workflows/hugo.yaml b/.gitea/workflows/hugo.yaml index 9ffd5f5..e64e7f3 100644 --- a/.gitea/workflows/hugo.yaml +++ b/.gitea/workflows/hugo.yaml @@ -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 +