⚡ Delete sourcemaps #388
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: ⚡ Delete sourcemaps | |
| on: | |
| delete: | |
| branches: | |
| - '**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| permissions: | |
| actions: write | |
| contents: read | |
| jobs: | |
| sourcemaps-deletion: | |
| name: ⚙️ Delete sourcemaps | |
| runs-on: ubuntu-latest | |
| if: "startsWith(github.event.ref_type, 'branch')" | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| ref: ${{ github.event.workflow_run.head_branch }} | |
| - name: 📦 Setup bun | |
| uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 | |
| with: | |
| bun-version: latest | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version-file: '.node-version' | |
| # cache: 'bun' | |
| cache-dependency-path: ./package.json | |
| - name: 📥 Install deps | |
| run: bun install --frozen-lockfile | |
| - name: 📡 delete-sourcemap | |
| env: | |
| DELETED_BRANCH: ${{ github.event.ref }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| R2_DOCUMENTS_ACCESS_KEY_ID: ${{ secrets.R2_DOCUMENTS_ACCESS_KEY_ID }} | |
| R2_DOCUMENTS_SECRET_ACCESS_KEY: ${{ secrets.R2_DOCUMENTS_SECRET_ACCESS_KEY }} | |
| run: bun run delete-sourcemaps |