From 5239d56c9e03b7cbf2bb9e0ea090ba478b1abb84 Mon Sep 17 00:00:00 2001 From: chapeau Date: Sun, 8 Sep 2024 08:15:30 +0000 Subject: [PATCH] Actualiser .forgejo/workflows/main.yml --- .forgejo/workflows/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml index 5ce975e..d907b5d 100644 --- a/.forgejo/workflows/main.yml +++ b/.forgejo/workflows/main.yml @@ -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 \ No newline at end of file