Update pustaka for Hi3TW @1740036772 #2
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: Upload to R2 - Hi3TW | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - 'pustaka/Hi3TW/**' | |
| workflow_dispatch: | |
| jobs: | |
| pustaka-Hi3TW: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| run: | | |
| git clone --depth 1 https://github.com/CollapseLauncher/CollapseLauncher-MetaRepo.git cl-meta | |
| - name: Sync Metadata objects | |
| uses: ryand56/r2-upload-action@latest | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ secrets.R2_BUCKET }} | |
| source-dir: cl-meta/pustaka/Hi3TW | |
| destination-dir: cl-meta/pustaka/Hi3TW | |
| output-file-url: false | |
| - name: Purge Cloudflare cache | |
| run: | | |
| curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_PURGE_CACHE_ZONEID }}/purge_cache" \ | |
| -H "Authorization: Bearer ${{ secrets.CF_PURGE_CACHE_TOKEN }}" \ | |
| -H "Content-Type: application/json" \ | |
| --data "{ \"purge_everything\": true }" |