From 02d2834636f7ea92b37582066ebaaab4fee628be Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 3 Mar 2025 00:22:27 +0100 Subject: [PATCH] Fixed jekyll build --- .gitea/workflows/02-jekyll-pages.yml | 36 +++++++++++++++------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/02-jekyll-pages.yml b/.gitea/workflows/02-jekyll-pages.yml index c64e99b..cdb8a98 100644 --- a/.gitea/workflows/02-jekyll-pages.yml +++ b/.gitea/workflows/02-jekyll-pages.yml @@ -29,6 +29,10 @@ jobs: with: ref: 'pages' path: 'pages' + - name: Setup git + run: | + git config user.name "${{ gitea.actor }}" + git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online" - name: Cleanup Pages Branch run: | cd pages @@ -37,14 +41,14 @@ jobs: cd .. - name: Setup Ruby run: | - apt-get update && \ - apt-get install curl wget tar build-essential zlib1g-dev gpg -y && \ - curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \ - curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - && \ - curl -sSL https://get.rvm.io | bash -s stable && \ - source /etc/profile.d/rvm.sh && \ - rvm mount -r https://raw.morlana.space/morlana/rvm-binaries/@binaries/ubuntu/22.04/aarch64/ruby-$RUBY_VERSION.tar.bz2 && \ - rvm use $RUBY_VERSION && ruby -v && gem -v && \ + apt-get update + apt-get install curl wget tar build-essential zlib1g-dev gpg -y + curl -sSL https://rvm.io/mpapis.asc | gpg --import - + curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - + curl -sSL https://get.rvm.io | bash -s stable + source /etc/profile.d/rvm.sh + rvm mount -r https://raw.morlana.space/morlana/rvm-binaries/@binaries/ubuntu/22.04/aarch64/ruby-$RUBY_VERSION.tar.bz2 + rvm use $RUBY_VERSION && ruby -v && gem -v gem install bundler jekyll webrick - name: Prepare Jekyll Index run: | @@ -52,18 +56,16 @@ jobs: cat README.md >> index.md - name: Build with Jekyll run: | - source /etc/profile.d/rvm.sh && \ - rvm use $RUBY_VERSION && ruby -v && gem -v && \ - bundle install && \ + source /etc/profile.d/rvm.sh + rvm use $RUBY_VERSION && ruby -v && gem -v + bundle install bundle exec jekyll build --destination pages env: JEKYLL_ENV: production - name: push pages run: | - cd pages && \ - cp ../.domains ./.domains && \ - git config user.name "${{ gitea.actor }}" && \ - git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online" && \ - git add . && \ - git commit -m "jekyll build from Action ${GITHUB_SHA}" && \ + cd pages + cp ../.domains ./.domains + git add . + git commit -m "jekyll build from Action ${GITHUB_SHA}" git push