From f7caca176f88b2137b7551f6f9de16cddfa7c92e Mon Sep 17 00:00:00 2001 From: chapeau Date: Sun, 8 Sep 2024 07:52:40 +0000 Subject: [PATCH] Ajouter .forgejo/workflows/main.yml --- .forgejo/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .forgejo/workflows/main.yml diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml new file mode 100644 index 0000000..7befe30 --- /dev/null +++ b/.forgejo/workflows/main.yml @@ -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 \ No newline at end of file