mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-10 14:22:52 +01:00
feat: GH Workflow, upload artifact (#38)
* feat: GH Workflow, upload artifact * fix: GH Action, only upload on main branch
This commit is contained in:
10
.github/workflows/test-build.yml
vendored
10
.github/workflows/test-build.yml
vendored
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user