This commit is contained in:
parent
24dac43c23
commit
7bc0360807
@ -22,24 +22,12 @@ 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user