Skip to content

Commit e066eb9

Browse files
Update pages-deploy.yml
1 parent dbe7220 commit e066eb9

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: Build and Deploy
2-
1+
name: "Build and Deploy"
32
on:
43
push:
54
branches:
@@ -10,13 +9,15 @@ on:
109
- README.md
1110
- LICENSE
1211

12+
# Allows you to run this workflow manually from the Actions tab
1313
workflow_dispatch:
1414

1515
permissions:
1616
contents: read
1717
pages: write
1818
id-token: write
1919

20+
# Allow one concurrent deployment
2021
concurrency:
2122
group: "pages"
2223
cancel-in-progress: true
@@ -28,6 +29,11 @@ jobs:
2829
steps:
2930
- name: Checkout
3031
uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
34+
# submodules: true
35+
# If using the 'assets' git submodule from Chirpy Starter, uncomment above
36+
# (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)
3137

3238
- name: Setup Pages
3339
id: pages
@@ -39,24 +45,21 @@ jobs:
3945
ruby-version: 3.3
4046
bundler-cache: true
4147

42-
- name: Install dependencies
43-
run: bundle install
44-
4548
- name: Build site
46-
run: bundle exec jekyll build -d _site
49+
run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
4750
env:
48-
JEKYLL_ENV: production
51+
JEKYLL_ENV: "production"
4952

5053
- name: Test site
5154
run: |
5255
bundle exec htmlproofer _site \
53-
--disable-external \
54-
--ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
56+
\-\-disable-external \
57+
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
5558
5659
- name: Upload site artifact
5760
uses: actions/upload-pages-artifact@v3
5861
with:
59-
path: _site
62+
path: "_site${{ steps.pages.outputs.base_path }}"
6063

6164
deploy:
6265
environment:

0 commit comments

Comments
 (0)