This commit is contained in:
parent
fc7c63e296
commit
9086ac7096
@ -22,8 +22,18 @@ 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 }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user