Skip to content

All history was squashed #130

All history was squashed

All history was squashed #130

Workflow file for this run

name: Build and when ready deploy to gh-pages
on:
pull_request:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: write
pages: write
pull-requests: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ${{ github.repository_owner == 'allegro-internal' && fromJSON('["ubuntu-latest", "self-hosted"]') || fromJSON('["ubuntu-latest"]') }}
env:
JEKYLL_ENV: production
steps:
- uses: actions/checkout@v6
- uses: actions/configure-pages@v5
if: ${{ github.repository_owner != 'allegro-internal' && github.ref == 'refs/heads/main' }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- run: gem update --system
- uses: actions/setup-node@v6
with:
node-version: '24'
- run: npm install
- run: bundle exec jekyll build
- name: Generate Token for Allegro Rewrite
id: app-token
uses: actions/create-github-app-token@v1
if: ${{ github.repository_owner == 'allegro-internal' }}
with:
app-id: ${{ secrets.ALLEGRO_REWRITE_APP_ID }}
private-key: ${{ secrets.ALLEGRO_REWRITE_APP_SECRET_KEY_FOR_AUTOMERGE }}
- name: Dependabot automerge
uses: allegro-actions/dependabot-automerge@v1
if: ${{ github.repository_owner == 'allegro-internal' }}
with:
github-token: ${{ steps.app-token.outputs.token }}
- uses: actions/upload-pages-artifact@v4
if: ${{ github.repository_owner != 'allegro-internal' && github.ref == 'refs/heads/main' }}
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: ${{ github.repository_owner != 'allegro-internal' && github.ref == 'refs/heads/main' }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5