This commit is contained in:
parent
d6ce35ecd4
commit
5239d56c9e
1 changed files with 8 additions and 3 deletions
|
@ -11,6 +11,13 @@ jobs:
|
|||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Clone static repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: chapeau/blog-static
|
||||
path: _site
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
|
||||
- name: Setup
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -18,14 +25,12 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
apt update
|
||||
apt install -y ruby-full build-essential git apt-utils
|
||||
gem install bundler
|
||||
apt install -y bundler git apt-utils
|
||||
git config --global user.email "$MAIL"
|
||||
git config --global user.name "CI Builder"
|
||||
bundle install
|
||||
bundle exec jekyll build
|
||||
cd _site
|
||||
git remote set-url origin https://user:$GITHUB_TOKEN@git.chapoline.me/chapeau/blog-static.git
|
||||
git add --all
|
||||
git commit -m "Build"
|
||||
git push -u origin main
|
Loading…
Add table
Reference in a new issue