From 4dc05a1228d925b49bf5d494064de7251368b8a1 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Wed, 6 Dec 2023 20:57:41 +0000 Subject: [PATCH] Add .github/workflows/website.yaml --- .github/workflows/website.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/website.yaml diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml new file mode 100644 index 0000000..2727e20 --- /dev/null +++ b/.github/workflows/website.yaml @@ -0,0 +1,33 @@ +name: Build Website +run-name: Build Website + +on: + push: + paths: + - '.github/workflows/website.yaml' + - 'website/**' + +jobs: + build: + name: Build NPM Project + runs-on: ubuntu-latest + container: node + steps: + - name: Clone Repository + uses: ztimson/actions/clone@develop + + - name: Install Dependencies + run: npm i + working-directory: website + + - name: Build Project + run: npm run build + working-directory: website + + - name: Upload Artifacts + if: ${{inputs.artifacts}} != "false" + uses: actions/upload-artifact@v3 + with: + name: website + path: website/dist + retention-days: 7