From 6ccb40ba8ec2e5fff4c4609fe364c7de6360253f Mon Sep 17 00:00:00 2001 From: Bertrand SHEMA Date: Mon, 22 Jul 2024 18:01:08 +0200 Subject: [PATCH] Add GitHub Actions workflow for build and deploy --- .github/workflows/build-and-deploy.yml | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build-and-deploy.yml diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml new file mode 100644 index 00000000..d95dcc11 --- /dev/null +++ b/.github/workflows/build-and-deploy.yml @@ -0,0 +1,31 @@ +name: Build and Deploy + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Run build + run: npm run build + + - name: Deploy + run: npm run deploy # Replace with your actual deploy command