Skip to content

Commit 7029144

Browse files
committed
Revert "Fix GitHub Pages deployment workflow"
This reverts commit 8a5c5ea.
1 parent 8a5c5ea commit 7029144

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,54 @@
1-
name: Deploy Jekyll site to GitHub Pages
1+
name: Deploy to GitHub Pages (ipcrypt-std.github.io)
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: [ main ]
66
workflow_dispatch:
77

8-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
98
permissions:
109
contents: read
1110
pages: write
1211
id-token: write
1312

14-
# Allow only one concurrent deployment
1513
concurrency:
1614
group: "pages"
17-
cancel-in-progress: true
15+
cancel-in-progress: false
1816

1917
jobs:
2018
# Build job
2119
build:
2220
runs-on: ubuntu-latest
23-
defaults:
24-
run:
25-
working-directory: ./www
2621
steps:
2722
- name: Checkout
2823
uses: actions/checkout@v4
24+
25+
- name: Setup Pages
26+
uses: actions/configure-pages@v4
27+
2928
- name: Setup Ruby
3029
uses: ruby/setup-ruby@v1
3130
with:
32-
ruby-version: '3.2'
33-
bundler-cache: true
34-
working-directory: ./www
35-
- name: Setup Pages
36-
id: pages
37-
uses: actions/configure-pages@v4
31+
ruby-version: '3.3'
32+
bundler-cache: false
33+
working-directory: www
34+
3835
- name: Build with Jekyll
39-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
36+
run: |
37+
cd www
38+
gem update --system
39+
gem install bundler
40+
bundle update --bundler
41+
bundle install
42+
# Build Jekyll site with baseurl set to empty string
43+
JEKYLL_ENV=production bundle exec jekyll build --baseurl=""
4044
env:
4145
JEKYLL_ENV: production
46+
4247
- name: Upload artifact
4348
uses: actions/upload-pages-artifact@v3
4449
with:
45-
path: ./www/_site
50+
# Deploy the _site directory to the root of the GitHub Pages site
51+
path: www/_site
4652

4753
# Deployment job
4854
deploy:

0 commit comments

Comments
 (0)