Skip to content

Commit f7b0c35

Browse files
committed
test: update main.yml
1 parent b18f1db commit f7b0c35

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,15 @@ jobs:
6161
deploy:
6262
needs: build
6363
# Deploy to the github-pages environment
64-
environment:
65-
name: github-pages
66-
url: ${{ steps.deployment.outputs.page_url }}
67-
68-
runs-on: ubuntu-latest
69-
steps:
70-
- name: Deploy to GitHub Pages
71-
id: deployment
72-
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
64+
uses: peaceiris/actions-gh-pages@v4
65+
# If you're changing the branch from main,
66+
# also change the `main` in `refs/heads/main`
67+
# below accordingly.
68+
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
69+
with:
70+
personal_token: ${{ secrets.PERSONAL_TOKEN }}
71+
external_repository: devops-maturity/devops-maturity.github.io
72+
publish_branch: main
73+
user_name: 'github-actions[bot]'
74+
user_email: 'github-actions[bot]@users.noreply.github.com'
75+
publish_dir: ./public

0 commit comments

Comments
 (0)