blog/.forgejo/workflows/main.yml
chapeau 069f52efc3
All checks were successful
/ build (push) Successful in 44s
Actualiser .forgejo/workflows/main.yml
2024-09-08 08:17:24 +00:00

36 lines
No EOL
808 B
YAML

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