blog/.forgejo/workflows/main.yml

31 lines
808 B
YAML
Raw Normal View History

2024-09-08 07:52:40 +00:00
on:
push:
jobs:
build:
runs-on: docker
container:
2024-09-08 07:54:55 +00:00
image: node:bookworm
2024-09-08 07:52:40 +00:00
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Setup
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAIL: ${{ secrets.MAIL }}
shell: bash
run: |
apt update
2024-09-08 08:02:58 +00:00
apt install -y ruby-full build-essential git apt-utils
2024-09-08 07:58:15 +00:00
gem install bundler
2024-09-08 07:52:40 +00:00
git config --global user.email "$MAIL"
git config --global user.name "CI Builder"
bundle install
bundle exec jekyll build
cd _site
2024-09-08 07:56:47 +00:00
git remote set-url origin https://user:$GITHUB_TOKEN@git.chapoline.me/chapeau/blog-static.git
2024-09-08 07:52:40 +00:00
git add --all
git commit -m "Build"
git push -u origin main