Skip to content

Commit c44cf26

Browse files
authored
Update pages.yml
1 parent adff25b commit c44cf26

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/pages.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
11
# .github/workflows/pages.yml
2-
32
name: Build & Deploy Jekyll site to Pages
43

54
on:
65
push:
7-
branches: ["master"] # or whatever your default branch is
8-
workflow_dispatch: # optional manual trigger
6+
branches: ["master"]
7+
workflow_dispatch:
98

109
permissions:
1110
contents: read
1211
pages: write
1312
id-token: write
1413

14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
1518
jobs:
16-
build-and-deploy:
19+
build:
1720
runs-on: ubuntu-latest
18-
environment:
19-
name: github-pages
20-
url: https://volovyk.dev
21-
2221
steps:
2322
- name: Checkout
2423
uses: actions/checkout@v4
2524

2625
- name: Setup Ruby & Install Gems
2726
uses: ruby/setup-ruby@v1
2827
with:
29-
ruby-version: "3.2.2" # pick any supported version
28+
ruby-version: "3.2.2"
3029
bundler-cache: true
3130

3231
- name: Configure Pages
@@ -44,5 +43,13 @@ jobs:
4443
with:
4544
path: _site
4645

46+
deploy:
47+
needs: build
48+
runs-on: ubuntu-latest
49+
environment:
50+
name: github-pages
51+
url: https://volovyk.dev
52+
53+
steps:
4754
- name: Deploy to GitHub Pages
48-
uses: actions/deploy-pages@v3
55+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)