Skip to content

Commit b9b242f

Browse files
committed
Updated deploy step
1 parent 333a3f7 commit b9b242f

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/gh-pages.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,18 @@ jobs:
154154
TZ: America/New York
155155
run: hugo --gc
156156

157-
# - name: Upload artifact
158-
# uses: actions/upload-pages-artifact@v3
159-
# with:
160-
# path: ./public
161-
162-
- name: Deploy
163-
uses: peaceiris/actions-gh-pages@v4
164-
if: github.ref == 'refs/heads/main'
157+
- name: Upload artifact
158+
uses: actions/upload-pages-artifact@v3
165159
with:
166-
github_token: ${{ secrets.GITHUB_TOKEN }}
167-
publish_dir: ./public
160+
path: ./public
161+
162+
- name: Deploy to GitHub Pages
163+
id: deployment
164+
uses: actions/deploy-pages@v4
165+
166+
# - name: Deploy
167+
# uses: peaceiris/actions-gh-pages@v4
168+
# if: github.ref == 'refs/heads/main'
169+
# with:
170+
# github_token: ${{ secrets.GITHUB_TOKEN }}
171+
# publish_dir: ./public

0 commit comments

Comments
 (0)