Skip to content

Commit

Permalink
fix: GH Action, only upload on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
erictuvesson committed Oct 10, 2023
1 parent dcab717 commit 629ade5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup node env 🏗
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16

Expand All @@ -24,7 +24,8 @@ jobs:
- name: Build noodl-docs
run: npm run build

- uses: actions/upload-artifact@v3
- if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: noodl-docs
path: build/

0 comments on commit 629ade5

Please sign in to comment.