Skip to content

Commit

Permalink
github: deploy website via actions/deploy-pages
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Feb 4, 2025
1 parent f67a5af commit 3766b9c
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 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,21 @@ 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:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 3766b9c

Please sign in to comment.