blog/.forgejo/workflows/main.yml
chapeau f930b6e225
Some checks failed
/ build (push) Failing after 45s
Actualiser .forgejo/workflows/main.yml
2024-09-08 07:58:15 +00:00

31 lines
No EOL
798 B
YAML

on:
push:
jobs:
build:
runs-on: docker
container:
image: node:bookworm
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Setup
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAIL: ${{ secrets.MAIL }}
shell: bash
run: |
apt update
apt install -y ruby-full build-essential git
gem install bundler
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