Skip to content

Commit 4471132

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

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: "Build and Deploy"
1+
name: Build and Deploy
2+
23
on:
34
push:
45
branches:
@@ -9,15 +10,13 @@ on:
910
- README.md
1011
- LICENSE
1112

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
2120
concurrency:
2221
group: "pages"
2322
cancel-in-progress: true
@@ -29,11 +28,6 @@ jobs:
2928
steps:
3029
- name: Checkout
3130
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)
3731

3832
- name: Setup Pages
3933
id: pages
@@ -45,21 +39,24 @@ jobs:
4539
ruby-version: 3.3
4640
bundler-cache: true
4741

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

5350
- name: Test site
5451
run: |
5552
bundle exec htmlproofer _site \
56-
\-\-disable-external \
57-
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
53+
--disable-external \
54+
--ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
5855
5956
- name: Upload site artifact
6057
uses: actions/upload-pages-artifact@v3
6158
with:
62-
path: "_site${{ steps.pages.outputs.base_path }}"
59+
path: _site
6360

6461
deploy:
6562
environment:

0 commit comments

Comments
 (0)