Actualiser .forgejo/workflows/main.yml
Some checks failed
/ build (push) Failing after 46s

This commit is contained in:
chapeau 2024-09-08 08:15:30 +00:00
parent d6ce35ecd4
commit 5239d56c9e

View file

@ -11,6 +11,13 @@ jobs:
- name: Clone repo - name: Clone repo
uses: actions/checkout@v4 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 - name: Setup
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -18,14 +25,12 @@ jobs:
shell: bash shell: bash
run: | run: |
apt update apt update
apt install -y ruby-full build-essential git apt-utils apt install -y bundler git apt-utils
gem install bundler
git config --global user.email "$MAIL" git config --global user.email "$MAIL"
git config --global user.name "CI Builder" git config --global user.name "CI Builder"
bundle install bundle install
bundle exec jekyll build bundle exec jekyll build
cd _site cd _site
git remote set-url origin https://user:$GITHUB_TOKEN@git.chapoline.me/chapeau/blog-static.git
git add --all git add --all
git commit -m "Build" git commit -m "Build"
git push -u origin main git push -u origin main