Testing desiredGameDensity at 100% #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto upload plugins to MinIO | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| upload: | |
| runs-on: ubuntu-latest | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_ACCESS_KEY }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_SECRET_KEY }} | |
| AWS_DEFAULT_REGION: us-east-1 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Upload plugins to MinIO | |
| run: | | |
| for dir in */ ; do | |
| dir="${dir%/}" | |
| if [[ "$dir" == .* ]]; then | |
| echo "Skipping hidden directory: $dir" | |
| continue | |
| fi | |
| echo "Processing directory: $dir" | |
| ( | |
| cd "$dir" | |
| zip -r "../${dir}.kbplugin" . | |
| ) | |
| aws s3 cp \ | |
| "${dir}.kbplugin" \ | |
| "s3://${{ secrets.MINIO_BUCKET }}/plugins/${dir}.kbplugin" \ | |
| --endpoint-url "${{ secrets.MINIO_ENDPOINT }}" | |
| done |