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