Skip to content

Commit a424a1a

Browse files
committed
chore: update sourcemap upload action to version 0.3 and add conditional execution for main branch
1 parent 1d144e6 commit a424a1a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build Test
22

33
on: [pull_request, push]
44

5-
env:
5+
env:
66
NEXT_PUBLIC_BASE_URL: https://thenextlvl.net
77

88
jobs:
@@ -17,7 +17,9 @@ jobs:
1717
- run: bun run build
1818

1919
- name: Upload Source Map
20-
uses: faststats-dev/[email protected]
20+
# This condition ensures the step only runs on the main branch
21+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
22+
uses: faststats-dev/[email protected]
2123
with:
2224
api-key: ${{ secrets.FASTSTATS_API_KEY }}
23-
dist-dir: .output/public/assets
25+
dist-dir: .output/public/assets

0 commit comments

Comments
 (0)