Skip to content

Update gh-pages.yml #24

Update gh-pages.yml

Update gh-pages.yml #24

Workflow file for this run

name: Deploy to gh-pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
if: ${{ github.repository_owner != 'allegro-internal' }}
runs-on: ubuntu-latest
env:
JEKYLL_ENV: production
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
bundler-cache: true
- run: gem update --system 3.2.3
- uses: actions/setup-node@v4
with:
node-version: '21'
- run: npm install
- run: bundle install
- run: bundle exec jekyll build
- uses: actions/upload-pages-artifact@v3
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