Skip to content

Commit 9344ab6

Browse files
committed
Replace peaceIris actions with stock github actions
1 parent c6bc7b2 commit 9344ab6

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.github/workflows/gh-pages.yml

+24-24
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ jobs:
131131
# hugo-version: '0.127.0'
132132
# extended: true
133133

134-
# - name: Setup Pages
135-
# id: pages
136-
# uses: actions/configure-pages@v5
134+
- name: Setup Pages
135+
id: pages
136+
uses: actions/configure-pages@v5
137137

138138
- name: Setup Node
139139
uses: actions/setup-node@v4
@@ -151,29 +151,29 @@ jobs:
151151
TZ: America/New York
152152
run: hugo -d "./public" --cleanDestinationDir --baseURL "https://stumbo.github.io/" -e staging
153153

154-
- name: Deploy
155-
uses: peaceiris/actions-gh-pages@v4
156-
if: github.ref == 'refs/heads/main'
157-
with:
158-
github_token: ${{ secrets.GITHUB_TOKEN }}
159-
publish_dir: ./public
154+
# - name: Deploy
155+
# uses: peaceiris/actions-gh-pages@v4
156+
# if: github.ref == 'refs/heads/main'
157+
# with:
158+
# github_token: ${{ secrets.GITHUB_TOKEN }}
159+
# publish_dir: ./public
160160

161161

162-
# - name: Upload artifact
163-
# uses: actions/upload-pages-artifact@v3
164-
# with:
165-
# path: ./public
162+
- name: Upload artifact
163+
uses: actions/upload-pages-artifact@v3
164+
with:
165+
path: ./public
166166

167167

168-
# deploy:
169-
# environment:
170-
# name: github-pages
171-
# url: ${{ steps.deployment.outputs.page_url }}
172-
# runs-on: ubuntu-latest
173-
# needs: build
174-
#
175-
# steps:
176-
# - name: Deploy to GitHub Pages
177-
# id: deployment
178-
# uses: actions/deploy-pages@v4
168+
deploy:
169+
environment:
170+
name: github-pages
171+
url: ${{ steps.deployment.outputs.page_url }}
172+
runs-on: ubuntu-latest
173+
needs: build
174+
175+
steps:
176+
- name: Deploy to GitHub Pages
177+
id: deployment
178+
uses: actions/deploy-pages@v4
179179

0 commit comments

Comments
 (0)