Skip to content

Commit 059fd58

Browse files
committed
Updated GitHub workflow configuration
The GitHub Actions workflow has been updated to improve the build and deployment process. The job name was changed from 'github-pages' to 'build-and-deploy'. Git configuration steps were removed, and new steps for building the site and deploying to GitHub Pages were added. The action used for deployment was also switched to peaceiris/actions-gh-pages@v3.
1 parent 81e5d92 commit 059fd58

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/run.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77

88
jobs:
9-
github-pages:
9+
build-and-deploy:
1010
runs-on: ubuntu-22.04
1111
permissions:
1212
contents: write
@@ -17,18 +17,17 @@ jobs:
1717
with:
1818
ruby-version: '3.0'
1919
bundler-cache: true
20-
- name: Configure Git
21-
run: |
22-
git config --global --add safe.directory /github/workspace
23-
git config --global user.name "GitHub Actions"
24-
git config --global user.email "actions@github.com"
2520
- name: Install dependencies
2621
run: |
2722
bundle config unset deployment
2823
sudo gem install bundler:2.2.15
2924
bundle install
3025
bundle add kramdown-parser-gfm
3126
bundle install
32-
- uses: helaili/jekyll-action@2.0.1
33-
env:
34-
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Build site
28+
run: bundle exec jekyll build
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./_site

0 commit comments

Comments
 (0)