From 8d34fbf391c2206f6c519d750396ad3a7c94ce35 Mon Sep 17 00:00:00 2001 From: Ivica Matic Date: Tue, 24 Oct 2023 16:41:17 +0100 Subject: [PATCH] cicd: added build actions --- .github/workflows/build_and_upload_dist.yaml | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build_and_upload_dist.yaml diff --git a/.github/workflows/build_and_upload_dist.yaml b/.github/workflows/build_and_upload_dist.yaml new file mode 100644 index 0000000..d306b4b --- /dev/null +++ b/.github/workflows/build_and_upload_dist.yaml @@ -0,0 +1,25 @@ +name: Build React website and upload to Azure Storage Blob +on: + push: + branches: + - staging + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Setup Node 18 + uses: actions/setup-node@v2 + with: + node-version: 18.18.0 + - name: Install dependencies + run: npm install + - name: Build website + run: npm run build + - name: Store build into artifact + uses: actions/upload-artifact@v2 + with: + name: build-${{ github.sha }} + path: build