We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a5ec27 commit 9b333c4Copy full SHA for 9b333c4
1 file changed
.github/workflows/deploy.yml
@@ -36,17 +36,9 @@ jobs:
36
run: hugo --minify
37
38
- name: Deploy to vibhu2.github.io
39
- env:
40
- DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
41
- run: |
42
- git config --global user.name "github-actions[bot]"
43
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
44
- git config --global credential.helper store
45
- echo "https://Vibhu2:${DEPLOY_TOKEN}@github.com" > ~/.git-credentials
46
-
47
- cd public
48
- git init
49
- git checkout -b main
50
- git add .
51
- git commit -m "Deploy: ${{ github.sha }}"
52
- git push --force https://github.com/Vibhu2/vibhu2.github.io.git main
+ uses: peaceiris/actions-gh-pages@v4
+ with:
+ deploy_key: ${{ secrets.DEPLOY_KEY }}
+ external_repository: Vibhu2/vibhu2.github.io
+ publish_branch: main
+ publish_dir: ./public
0 commit comments