Skip to content

ci: allow write

ci: allow write #3

Workflow file for this run

name: πŸš€ Deploy
on:
push:
branches:
- main
release:
types: [published]
pull_request: {}
permissions:
contents: write
jobs:
build:
name: πŸ“š Build
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: πŸ’Ž Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
- name: βŽ” Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: πŸ“₯ Install Gems
run: bundle install
- name: πŸ“₯ Install NPM Deps
run: npm install
- name: πŸ—οΈ Build
run: bundle exec jekyll build
- name: πŸš€ Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: _site