Fixed jekyll build

This commit is contained in:
Florian Weber 2025-03-03 00:22:27 +01:00
parent 03a56ef1bb
commit 02d2834636

View File

@ -29,6 +29,10 @@ jobs:
with: with:
ref: 'pages' ref: 'pages'
path: '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 - name: Cleanup Pages Branch
run: | run: |
cd pages cd pages
@ -37,14 +41,14 @@ jobs:
cd .. cd ..
- name: Setup Ruby - name: Setup Ruby
run: | run: |
apt-get update && \ apt-get update
apt-get install curl wget tar build-essential zlib1g-dev gpg -y && \ 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/mpapis.asc | gpg --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - && \ curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
curl -sSL https://get.rvm.io | bash -s stable && \ curl -sSL https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh && \ 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 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 && \ rvm use $RUBY_VERSION && ruby -v && gem -v
gem install bundler jekyll webrick gem install bundler jekyll webrick
- name: Prepare Jekyll Index - name: Prepare Jekyll Index
run: | run: |
@ -52,18 +56,16 @@ jobs:
cat README.md >> index.md cat README.md >> index.md
- name: Build with Jekyll - name: Build with Jekyll
run: | run: |
source /etc/profile.d/rvm.sh && \ source /etc/profile.d/rvm.sh
rvm use $RUBY_VERSION && ruby -v && gem -v && \ rvm use $RUBY_VERSION && ruby -v && gem -v
bundle install && \ bundle install
bundle exec jekyll build --destination pages bundle exec jekyll build --destination pages
env: env:
JEKYLL_ENV: production JEKYLL_ENV: production
- name: push pages - name: push pages
run: | run: |
cd pages && \ cd pages
cp ../.domains ./.domains && \ cp ../.domains ./.domains
git config user.name "${{ gitea.actor }}" && \ git add .
git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online" && \ git commit -m "jekyll build from Action ${GITHUB_SHA}"
git add . && \
git commit -m "jekyll build from Action ${GITHUB_SHA}" && \
git push git push