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

Commit c2498c7

Browse files
committed
github: deploy website via actions/deploy-pages
The old action was pushing commits to the gh-pages branch. This is a bit of a hack, and GitHub has official actions to create pages deployments instead. See: - https://github.com/actions/deploy-pages - https://github.com/actions/upload-pages-artifact Signed-off-by: Simon Ser <[email protected]>
1 parent f67a5af commit c2498c7

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

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

Lines changed: 19 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,22 @@ 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+
needs: build
39+
permissions:
40+
pages: write
41+
id-token: write
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)