Skip to content

Commit 1825340

Browse files
authored
Update jekyll.yml
1 parent 84a6efc commit 1825340

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

.github/workflows/jekyll.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
name: Deploy Jekyll site to Pages
22

3+
on:
4+
push:
5+
branches: ["main", "master"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:name: Deploy Jekyll site to Pages
21+
322
on:
423
push:
524
branches: ["main", "master"]
@@ -37,6 +56,83 @@ jobs:
3756
- name: Upload artifact
3857
uses: actions/upload-pages-artifact@v2
3958

59+
deploy:
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
needs: build
65+
steps:
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v3name: Deploy Jekyll site to Pages
69+
70+
on:
71+
push:
72+
branches: ["main", "master"]
73+
workflow_dispatch:
74+
75+
permissions:
76+
contents: read
77+
pages: write
78+
id-token: write
79+
80+
concurrency:
81+
group: "pages"
82+
cancel-in-progress: false
83+
84+
jobs:
85+
build:
86+
runs-on: ubuntu-latest
87+
steps:
88+
- name: Checkout
89+
uses: actions/checkout@v4
90+
- name: Setup Ruby
91+
uses: ruby/setup-ruby@v1
92+
with:
93+
ruby-version: '3.1'
94+
bundler-cache: true
95+
- name: Setup Pages
96+
id: pages
97+
uses: actions/configure-pages@v4
98+
- name: Build with Jekyll
99+
run: |
100+
bundle install
101+
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
102+
env:
103+
JEKYLL_ENV: production
104+
- name: Upload artifact
105+
uses: actions/upload-pages-artifact@v2
106+
107+
deploy:
108+
environment:
109+
name: github-pages
110+
url: ${{ steps.deployment.outputs.page_url }}
111+
runs-on: ubuntu-latest
112+
needs: build
113+
steps:
114+
- name: Deploy to GitHub Pages
115+
id: deployment
116+
uses: actions/deploy-pages@v3
117+
- name: Checkout
118+
uses: actions/checkout@v4
119+
- name: Setup Ruby
120+
uses: ruby/setup-ruby@v1
121+
with:
122+
ruby-version: '3.1'
123+
bundler-cache: true
124+
- name: Setup Pages
125+
id: pages
126+
uses: actions/configure-pages@v4
127+
- name: Build with Jekyll
128+
run: |
129+
bundle install
130+
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
131+
env:
132+
JEKYLL_ENV: production
133+
- name: Upload artifact
134+
uses: actions/upload-pages-artifact@v3
135+
40136
deploy:
41137
environment:
42138
name: github-pages

0 commit comments

Comments
 (0)