mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-11 06:42:55 +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
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup node env 🏗
|
- name: Setup node env 🏗
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
- name: Install dependencies 🏗
|
- name: Install dependencies 🏗
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Build noodl
|
- name: Build noodl-docs
|
||||||
run: npm run build
|
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