diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index fde3bbbf..17f52253 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -26,16 +26,17 @@ jobs: with: node-version: '14.x' - - name: Configure Git - run: | - git config user.name "GitHub Action" - git config user.email "action@github.com" - - name: Install npm dependencies in docs run: cd docs && npm install - name: Build project run: cd docs && npm run build - - name: Deploy project - run: cd docs && npm run deploy \ No newline at end of file + - name: Deploy to GitHub Pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + cd docs + npx gh-pages -d build -r https://x-access-token:${GITHUB_TOKEN}@github.com/Arquisoft/wiq_es04b.git