Skip to content

Commit e360179

Browse files
committed
update workflow
1 parent 3e10cd6 commit e360179

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
1-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
21
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
106
workflow_dispatch:
117

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
138
permissions:
149
contents: read
1510
pages: write
1611
id-token: write
1712

18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2013
concurrency:
2114
group: "pages"
2215
cancel-in-progress: false
2316

2417
jobs:
25-
# Build job
2618
build:
2719
runs-on: ubuntu-latest
2820
steps:
2921
- name: Checkout
3022
uses: actions/checkout@v4
23+
3124
- name: Setup Pages
3225
uses: actions/configure-pages@v5
26+
27+
- name: Convert README.md to index.md
28+
run: |
29+
echo "---" > index.md
30+
echo "layout: default" >> index.md
31+
echo "title: Home" >> index.md
32+
echo "---" >> index.md
33+
cat README.md >> index.md
34+
3335
- name: Build with Jekyll
3436
uses: actions/jekyll-build-pages@v1
3537
with:
3638
source: ./
3739
destination: ./_site
40+
3841
- name: Upload artifact
3942
uses: actions/upload-pages-artifact@v3
4043

41-
# Deployment job
4244
deploy:
4345
environment:
4446
name: github-pages

0 commit comments

Comments
 (0)