Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 3766b9c

Browse files
committed
github: deploy website via actions/deploy-pages
Signed-off-by: Simon Ser <[email protected]>
1 parent f67a5af commit 3766b9c

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/osrd-ui-website.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
types: [created]
77

88
jobs:
9-
publish:
9+
build:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -28,11 +28,21 @@ jobs:
2828
npm ci
2929
npm run build
3030
31-
- name: Deploy to GitHub Pages
32-
uses: crazy-max/ghaction-github-pages@v4
31+
- name: Upload artifact
32+
id: deployment
33+
uses: actions/upload-pages-artifact@v3
3334
with:
34-
target_branch: gh-pages
35-
build_dir: storybook/storybook-static
36-
jekyll: false
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
path: storybook/storybook-static
36+
37+
deploy:
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
runs-on: ubuntu-latest
42+
permissions:
43+
pages: write
44+
id-token: write
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)