diff --git a/.github/workflows/deploytonetlify.yml b/.github/workflows/deploytonetlify.yml index ba5829b9..cf7c38a0 100644 --- a/.github/workflows/deploytonetlify.yml +++ b/.github/workflows/deploytonetlify.yml @@ -30,11 +30,11 @@ jobs: - name: Install Netlify CLI run: npm install -g netlify-cli - - name: Netlify Build - run: netlify build + - name: Link Netlify site + run: netlify link --id ${{ secrets.NETLIFY_SITE_ID }} - name: Deploy to Netlify env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - run: netlify deploy --prod --dir=build # Adjust the directory to your build output folder + run: npx netlify deploy --prod --dir=build # Adjust the directory to your build output folder