From 9833be4c488dece8bff425e5f2c27aabdf9df02d Mon Sep 17 00:00:00 2001 From: Mohammad Ghanem Date: Sun, 20 Jul 2025 22:07:48 +0200 Subject: [PATCH 1/2] feat: add test-deploy workflow --- .github/workflows/test-deploy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test-deploy.yml diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml new file mode 100644 index 0000000..a2c0613 --- /dev/null +++ b/.github/workflows/test-deploy.yml @@ -0,0 +1,24 @@ +name: Test deployment + +on: + pull_request: + branches: + - main + +jobs: + test-deploy: + name: Test deployment + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: npm + + - name: Install dependencies + run: npm ci + - name: Test build website + run: npm run build From 75a3486c43e39e2c76fac56472e82c4f61e6fe98 Mon Sep 17 00:00:00 2001 From: Mohammad Ghanem Date: Sun, 20 Jul 2025 22:23:40 +0200 Subject: [PATCH 2/2] fix: correct npm build command in deploy workflow --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 016f040..1b91bc4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,7 +21,7 @@ jobs: - name: Install dependencies run: npm ci - name: Build website - run: npm build + run: npm run build - name: Upload Build Artifact uses: actions/upload-pages-artifact@v3