Skip to content

Add jazzy SVG graphics and visual enhancements to GitHub Pages #13

Add jazzy SVG graphics and visual enhancements to GitHub Pages

Add jazzy SVG graphics and visual enhancements to GitHub Pages #13

Workflow file for this run

name: Build and Deploy GitHub Pages
on:
push:
branches:
- main
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install Node.js dependencies
run: npm ci
- name: Install Ruby dependencies
run: |
gem install bundler -v '~> 2.0'
bundle config set --local deployment 'false'
bundle config set --local path 'vendor/bundle'
bundle install --jobs 4 --retry 3
- name: Build TypeScript
run: npm run build:ts
- name: Build TailwindCSS
run: npm run build:css
- name: Build Jekyll site
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './_site'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4