Update: Adjust deployment schedule to every 12 hours and improve Ruby setup process
Some checks failed
Deploy Jekyll site to Pages / build (push) Failing after 3m1s
Some checks failed
Deploy Jekyll site to Pages / build (push) Failing after 3m1s
This commit is contained in:
parent
9c989d870d
commit
64a31ec76e
@ -6,22 +6,16 @@ on:
|
|||||||
- master
|
- master
|
||||||
# Runs every 3 hours to update pack and game version
|
# Runs every 3 hours to update pack and game version
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 */3 * * *'
|
- cron: '0 */12 * * *'
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pages"
|
group: "pages"
|
||||||
cancel-in-progress: false
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -88,28 +82,29 @@ jobs:
|
|||||||
path: "pages"
|
path: "pages"
|
||||||
- name: Setup Ruby
|
- name: Setup Ruby
|
||||||
run: |
|
run: |
|
||||||
curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \
|
apt-get update
|
||||||
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - && \
|
apt-get install curl wget tar build-essential zlib1g-dev gpg -y
|
||||||
curl -sSL https://get.rvm.io | bash -s stable && \
|
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
|
||||||
source /etc/profile.d/rvm.sh && \
|
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
|
||||||
rvm mount -r https://raw.morlana.space/morlana/rvm-binaries/@binaries/ubuntu/22.04/aarch64/ruby-$RUBY_VERSION.tar.bz2 && \
|
curl -sSL https://get.rvm.io | bash -s stable
|
||||||
rvm use $RUBY_VERSION && ruby -v && gem -v && \
|
source /etc/profile.d/rvm.sh
|
||||||
|
rvm mount -r https://git.morlana.online/api/packages/Morlana/generic/ruby-ubuntu-22.04-aarch64/$RUBY_VERSION/ruby-$RUBY_VERSION.tar.bz2
|
||||||
|
rvm use $RUBY_VERSION && ruby -v && gem -v
|
||||||
gem install bundler jekyll webrick
|
gem install bundler jekyll webrick
|
||||||
- name: Build with Jekyll
|
- name: Build with Jekyll
|
||||||
# Outputs to the './_site' directory by default
|
|
||||||
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
|
||||||
bash -c "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 config user.name "${{ gitea.actor }}"
|
||||||
git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online" && \
|
git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online"
|
||||||
git add . && \
|
git add -A
|
||||||
git commit -m "jekyll build from Action ${GITHUB_SHA}" && \
|
git commit -m "jekyll build from Action ${GITHUB_SHA}"
|
||||||
git push
|
git push
|
||||||
|
Loading…
x
Reference in New Issue
Block a user