Skip to content

group: always display old image when new one cannot be appended yet #24

group: always display old image when new one cannot be appended yet

group: always display old image when new one cannot be appended yet #24

Workflow file for this run

name: Build for Pages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-demos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure GitHub Pages
if: ${{ !env.ACT }}
uses: actions/configure-pages@v5.0.0
- name: Install dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build
run: "npm run build-demos"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3.0.1
if: ${{ !env.ACT }}
with:
path: .
deploy:
needs: build-demos
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4