From: xangelo Date: Tue, 3 Dec 2024 23:43:03 +0000 (-0500) Subject: chore(build): build using github actions X-Git-Tag: v0.4.4~29 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=421b17d57f5d958c67f089f1a67e44b0f8aae9c1;p=risinglegends.git chore(build): build using github actions --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a4e92d9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18.7.0' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build:prod + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: dist + path: dist/