Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions .github/workflows/osrd-ui-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [created]

jobs:
publish:
build:
runs-on: ubuntu-latest

steps:
Expand All @@ -28,11 +28,22 @@ jobs:
npm ci
npm run build

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
- name: Upload artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
target_branch: gh-pages
build_dir: storybook/storybook-static
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: storybook/storybook-static

deploy:
needs: build
permissions:
pages: write
id-token: write
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