Skip to content

Commit d400746

Browse files
authored
Update pages.yml
1 parent d0bf860 commit d400746

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

.github/workflows/pages.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
1-
name: Build & Deploy Jekyll site
1+
name: Build & Deploy Jekyll Site
22

33
on:
44
push:
5-
branches: ["master"] # or your default branch
6-
workflow_dispatch: # lets you trigger manually
5+
branches: ["master"] # your default branch
6+
workflow_dispatch: # optional manual trigger
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
712

813
jobs:
9-
build-deploy:
14+
build-and-deploy:
1015
runs-on: ubuntu-latest
16+
environment:
17+
name: github-pages
18+
url: https://volovyk.dev
1119

1220
steps:
13-
- name: Check out repository
14-
uses: actions/checkout@v3
21+
- uses: actions/checkout@v3
1522

16-
- name: Set up Ruby
17-
uses: ruby/setup-ruby@v1
23+
- name: Build Jekyll Site for GitHub Pages
24+
uses: actions/build-jekyll-for-github-pages@v2
1825
with:
19-
ruby-version: "3.2.2" # match your local Ruby
20-
21-
- name: Install dependencies
22-
run: |
23-
gem install bundler
24-
bundle config set path vendor/bundle
25-
bundle install
26-
27-
- name: Build the site with Jekyll
28-
run: |
29-
bundle exec jekyll build --destination public
26+
# directory to publish; leave blank for default (_site)
27+
destination: public
3028

3129
- name: Deploy to GitHub Pages
3230
uses: peaceiris/actions-gh-pages@v3
3331
with:
3432
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_branch: gh-pages # or omit to use default
3534
publish_dir: ./public

0 commit comments

Comments
 (0)