Skip to content

Commit 009d6cb

Browse files
committed
ci(github): test deployment to GH pages
1 parent 708928d commit 009d6cb

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy site to Pages
1+
name: Deploy site
22

33
on:
44
# Runs on pushes targeting the default branch
@@ -34,30 +34,30 @@ jobs:
3434
uses: actions/checkout@v3
3535
with:
3636
submodules: recursive
37-
# - name: Setup Pages
38-
# id: pages
39-
# uses: actions/configure-pages@v3
37+
- name: Setup Pages
38+
id: pages
39+
uses: actions/configure-pages@v3
4040
- name: Install Node.js dependencies
4141
run: npm ci
4242
- name: Build with Eleventy
4343
env:
4444
NODE_ENV: production
4545
NODE_OPTIONS: '--max_old_space_size=4096'
46-
# run: npm run build -- --pathprefix="${{ steps.pages.outputs.base_url }}/"
47-
run: npm run build -- --pathprefix="/bugs.jqueryui.com/"
48-
# - name: Upload artifact
49-
# uses: actions/upload-pages-artifact@v1
50-
# with:
51-
# path: ./_site
46+
run: npm run build -- --pathprefix="${{ steps.pages.outputs.base_url }}/"
47+
# run: npm run build -- --pathprefix="/bugs.jqueryui.com/"
48+
- name: Upload artifact
49+
uses: actions/upload-pages-artifact@v1
50+
with:
51+
path: ./_site
5252

5353
# Deployment job
54-
# deploy:
55-
# environment:
56-
# name: github-pages
57-
# url: ${{ steps.deployment.outputs.page_url }}
58-
# runs-on: ubuntu-latest
59-
# needs: build
60-
# steps:
61-
# - name: Deploy to GitHub Pages
62-
# id: deployment
63-
# uses: actions/deploy-pages@v2
54+
deploy:
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
runs-on: ubuntu-latest
59+
needs: build
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)