on: push: jobs: build: runs-on: docker container: image: node:bookworm steps: - 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 }} ref: main - name: Setup env: MAIL: ${{ secrets.MAIL }} shell: bash run: | apt update 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 add --all git commit -m "Build" git push -u origin main