From c93a7a10842765ba246e2fd3dcc8dfcc5f99aec7 Mon Sep 17 00:00:00 2001 From: Dimitri Ntempos Date: Wed, 25 Dec 2024 02:21:33 +0200 Subject: [PATCH] Update deployment workflow to use gh-pages branch --- .github/workflows/deploy.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 26d8a00..632eada 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,35 +3,30 @@ name: Deploy to GitHub Pages on: push: branches: - - babyweeks-react # Replace with your branch name + - babyweeks-react # Trigger on this branch jobs: deploy: runs-on: ubuntu-latest steps: - # Step 1: Checkout the code - name: Checkout code uses: actions/checkout@v3 - # Step 2: Set up Node.js - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '16' # Use your Node.js version (e.g., 16, 18) + node-version: '16' - # Step 3: Install dependencies - name: Install dependencies run: npm install - # Step 4: Build the project - name: Build project run: npm run build - # Step 5: Deploy to GitHub Pages - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build - publish_branch: babyweeks-react # Specify your branch here + publish_branch: gh-pages # Specify the deployment branch