This commit is contained in:
parent
febec9f79a
commit
f7caca176f
1 changed files with 32 additions and 0 deletions
32
.forgejo/workflows/main.yml
Normal file
32
.forgejo/workflows/main.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: debian: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 bundler git
|
||||
git config --global user.email "$MAIL"
|
||||
git config --global user.name "CI Builder"
|
||||
cd _site
|
||||
git remote set-url origin https://user:$GITHUB_TOKEN@git.chapoline.me/chapeau/blog-static.git
|
||||
cd ..
|
||||
bundle install
|
||||
bundle exec jekyll build
|
||||
cd _site
|
||||
git add --all
|
||||
git commit -m "Build"
|
||||
git push -u origin main
|
Loading…
Add table
Reference in a new issue