Skip to content

Commit

Permalink
feat: GH Workflow, upload artifact (#38)
Browse files Browse the repository at this point in the history
* feat: GH Workflow, upload artifact
* fix: GH Action, only upload on main branch
  • Loading branch information
erictuvesson authored Oct 10, 2023
1 parent 6b3315b commit c5a38f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ jobs:
uses: actions/checkout@v3

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

- name: Install dependencies 🏗
run: npm install

- name: Build noodl
- name: Build noodl-docs
run: npm run build

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

0 comments on commit c5a38f1

Please sign in to comment.