feat: reorganise params
This commit is contained in:
@@ -50,6 +50,7 @@ jobs:
|
|||||||
bucket: 'mybucket'
|
bucket: 'mybucket'
|
||||||
source_dir 'public'
|
source_dir 'public'
|
||||||
target_dir: '/'
|
target_dir: '/'
|
||||||
|
options: '--overwrite --exclude ".*"'
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ runs:
|
|||||||
MINIO_ACCESS_KEY: ${{ inputs.access_key }}
|
MINIO_ACCESS_KEY: ${{ inputs.access_key }}
|
||||||
MINIO_SECRET_KEY: ${{ inputs.secret_key }}
|
MINIO_SECRET_KEY: ${{ inputs.secret_key }}
|
||||||
args:
|
args:
|
||||||
- ${{ inputs.source_dir }}
|
|
||||||
- "${{ inputs.bucket }}${{ inputs.target_dir }}"
|
|
||||||
- ${{ inputs.options }}
|
- ${{ inputs.options }}
|
||||||
|
- ${{ inputs.source_dir }}
|
||||||
|
- ${{ inputs.bucket }}/${{ inputs.target_dir }}
|
||||||
branding:
|
branding:
|
||||||
icon: "upload-cloud"
|
icon: "upload-cloud"
|
||||||
color: "black"
|
color: "black"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ set -euo pipefail
|
|||||||
|
|
||||||
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY --api S3v4
|
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY --api S3v4
|
||||||
|
|
||||||
echo "$1 deploy/$2 $3"
|
echo "$1 $2 deploy/$3"
|
||||||
|
|
||||||
echo "Mirroring"
|
echo "Mirroring"
|
||||||
mc mirror --overwrite $1 "deploy/$2" $3
|
mc mirror $1 $2 "deploy/$3"
|
||||||
|
|||||||
Reference in New Issue
Block a user