Skip to content

Commit d0bf860

Browse files
authored
Create jekyll.yml
1 parent 7ce402b commit d0bf860

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/jekyll.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build & Deploy Jekyll Site
2+
3+
on:
4+
push:
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
12+
13+
jobs:
14+
build-and-deploy:
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: github-pages
18+
url: https://volovyk.dev
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Build Jekyll Site for GitHub Pages
24+
uses: actions/build-jekyll-for-github-pages@v2
25+
with:
26+
# directory to publish; leave blank for default (_site)
27+
destination: public
28+
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_branch: gh-pages # or omit to use default
34+
publish_dir: ./public

0 commit comments

Comments
 (0)