blog/.forgejo/workflows/main.yml

36 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
2024-09-08 08:15:30 +00:00
- name: Clone static repo
uses: actions/checkout@v4
with:
repository: chapeau/blog-static
path: _site
token: ${{ secrets.GH_PAT }}
2024-09-08 08:17:24 +00:00
ref: main
2024-09-08 08:15:30 +00:00
2024-09-08 07:52:40 +00:00
- name: Setup
env:
MAIL: ${{ secrets.MAIL }}
shell: bash
run: |
apt update
2024-09-08 08:15:30 +00:00
apt install -y bundler git apt-utils
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
git add --all
git commit -m "Build"
git push -u origin main