Skip to content

🌎 Deploy Website #23

🌎 Deploy Website

🌎 Deploy Website #23

name: 🌎 Deploy Website
on:
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
# allows Bundler gem installation (used for fastlane gem)
- name: 💎 Setup Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: 🐙 Setup Github Pages
uses: actions/configure-pages@v5
- name: 🧪 Build with Jekyll
run: |
gem install bundler
bundle config set --local path .bundler
bundle install --jobs "$(nproc)"
cd website
bundle exec jekyll build
- name: 🚀 Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/_site