|
24 | 24 | default: 'None' # This is just a flag for whether to ignore this input |
25 | 25 | type: string |
26 | 26 | publish_dir: |
27 | | - description: 'Publish dir for the peaceiris/actions-gh-pages action' |
| 27 | + description: 'Publish dir for the action' |
28 | 28 | required: false |
29 | 29 | default: '_build/html' |
30 | 30 | type: string |
@@ -60,26 +60,26 @@ jobs: |
60 | 60 | rm -f book.zip |
61 | 61 |
|
62 | 62 | - name: Deploy to GitHub Pages |
63 | | - uses: peaceiris/actions-gh-pages@v4.0.0 |
| 63 | + uses: JamesIves/github-pages-deploy-action@v4 |
64 | 64 | if: | |
65 | | - (github.ref == 'refs/heads/main' |
66 | | - && inputs.cname == 'None') |
| 65 | + (github.ref == 'refs/heads/main' && inputs.cname == 'None') |
67 | 66 | with: |
68 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
69 | | - publish_dir: ${{ inputs.publish_dir }} |
70 | | - enable_jekyll: false |
71 | | - keep_files: true # This preserves existing previews from open PRs |
72 | | - destination_dir: ${{ inputs.destination_dir }} |
| 67 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 68 | + BRANCH: gh-pages |
| 69 | + FOLDER: ${{ inputs.publish_dir }} |
| 70 | + CLEAN: true |
| 71 | + KEEP_HISTORY: false |
| 72 | + BASE_PATH: ${{ inputs.destination_dir }} |
73 | 73 |
|
74 | 74 | - name: Deploy to GitHub Pages with custom domain |
75 | | - uses: peaceiris/actions-gh-pages@v4.0.0 |
| 75 | + uses: JamesIves/github-pages-deploy-action@v4 |
76 | 76 | if: | |
77 | | - (github.ref == 'refs/heads/main' |
78 | | - && inputs.cname != 'None') |
| 77 | + (github.ref == 'refs/heads/main' && inputs.cname != 'None') |
79 | 78 | with: |
80 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
81 | | - publish_dir: ${{ inputs.publish_dir }} |
82 | | - enable_jekyll: false |
83 | | - keep_files: true # This preserves existing previews from open PRs |
84 | | - destination_dir: ${{ inputs.destination_dir }} |
85 | | - cname: ${{ inputs.cname }} |
| 79 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 80 | + BRANCH: gh-pages |
| 81 | + FOLDER: ${{ inputs.publish_dir }} |
| 82 | + CLEAN: true |
| 83 | + KEEP_HISTORY: false |
| 84 | + BASE_PATH: ${{ inputs.destination_dir }} |
| 85 | + CNAME: ${{ inputs.cname }} |
0 commit comments