From 6fe82b33659a8c7c8e232f15cb436b95c9bf7a3c Mon Sep 17 00:00:00 2001 From: Up Date: Tue, 26 Mar 2024 01:03:29 +0100 Subject: [PATCH] add GH build workflow --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..e01163ed5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +on: + push: + branches: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + env: + NODE_ENV: production + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: '${{ github.event.repository.name }}-${{ github.ref_name }}-${{ github.sha }}' + path: dist