Skip to content

Commit

Permalink
gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sanhphanvan96 committed Dec 16, 2024
1 parent 1d752aa commit aade350
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
paths-ignore:
- 'README.md'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
contents: write
pages: write
id-token: write

Expand All @@ -32,6 +33,13 @@ jobs:
uses: actions/configure-pages@v5
- name: Generate README
run: ./generate_readme.sh
- name: Commit README
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md
git commit -m 'Update README.md'
git push
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
Expand Down

0 comments on commit aade350

Please sign in to comment.