Upload with 'find'
All checks were successful
/ publish (push) Successful in 4s

This commit is contained in:
asonix 2024-02-10 13:42:25 -06:00
parent aced19b34e
commit 8739948161

View file

@ -13,6 +13,14 @@ jobs:
-
name: List Garage
run: |
mc alias set asonix_dog ${{ vars.GARAGE_ENDPOINT }} ${{ secrets.GARAGE_KEY_ID }} ${{ secrets.GARAGE_SECRET_KEY }} --api S3v4
mc alias set asonix_dog \
${{ vars.GARAGE_ENDPOINT }} \
${{ secrets.GARAGE_KEY_ID }} \
${{ secrets.GARAGE_SECRET_KEY }} \
--api S3v4
mc ls asonix_dog/${{ vars.GARAGE_BUCKET_NAME }}
ls -la
find . \
-type d \( -path ./.git -o -path ./.forgejo \) -prune \
-o -type f \
-exec mc cp {} asonix_dog/${{ vars.GARAGE_BUCKET_NAME }} \;