on: [push] jobs: build: runs-on: jekyll env: SITE: "sandbox.wildeboer.net" steps: - name: Checkout sources and target run: | git config --global --add safe.directory /workspace/$GITHUB_REPOSITORY git config --global user.email "$CBMAIL" git config --global user.name "Forgejo Site Builder" git clone --depth 1 $(echo ${{ github.server_url }} | sed -e "s|://|://${{ github.token }}@|")/$GITHUB_REPOSITORY.git git clone $(echo ${{ github.server_url }} | sed -e "s|://|://${{ secrets.PUSHER }}@|")/$GITHUB_REPOSITORY_OWNER/web.git - name: Fetch and install needed GEMs run: | cd $(echo $GITHUB_REPOSITORY | sed 's|.*\/\(.*\)|\1|') bundle install - name: Run Jekyll build run: | cd $(echo $GITHUB_REPOSITORY | sed 's|.*\/\(.*\)|\1|') jekyll build --destination ../web/$SITE - name: Publish site run: | cd web git add $SITE git commit -m "Build of $GITHUB_REPOSITORY done at $( env TZ=Europe/Berlin date +"%Y-%m-%d %X %z %Z" )" git push
https://cdn.masto.host/socialwildeboernet/media_attachments/files/113/661/934/657/863/352/original/f6d1de66e8588275.png