editoast: bump thiserror from 2.0.12 to 2.0.15 in /editoast #963
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish osrd-ui website | |
on: | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Release event to trigger on new releases | |
release: | |
types: [released] | |
# Run on PRs, but only preview | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
# Allow only one concurrent deployment. However, do NOT cancel in-progress runs as we want to allow | |
# especially production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
# Set environment variables, used multile times in the workflow | |
env: | |
artifact_name: "website" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "24" | |
- name: Cache node_modules | |
uses: actions/cache@v4 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Build | |
run: | | |
cd front | |
npm ci | |
npm run build --workspaces --if-present | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.artifact_name }} | |
path: "./front/ui/storybook/storybook-static" | |
include-hidden-files: true | |
retention-days: 1 | |
deploy: | |
name: Deploy website | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: OpenRailAssociation/web-deployment-action@v1 | |
with: | |
artifact_name: ${{ env.artifact_name }} | |
condition_production: ${{ startsWith(github.ref, 'refs/tags/ui-v') }} | |
domain_production: https://ui.osrd.fr | |
domain_preview: ${{ vars.WEB_DOMAIN_PREVIEW }} | |
dir_base: ${{ vars.WEB_DIR_BASE }} | |
dir_production: ui.osrd.fr | |
dir_preview_base: ${{ vars.WEB_DIR_PREVIEW_BASE }} | |
dir_preview_subdir: osrdui-pr-${{ github.event.number }} | |
ssh_host: ${{ vars.WEB_SSH_HOST }} | |
ssh_user: ${{ vars.WEB_SSH_USER }} | |
ssh_key: ${{ secrets.UI_WEBSITE_SSH_KEY }} | |
# Disable link checker and sticky comment, reports only via step summaries | |
linkchecker_enabled: false | |
sticky_comment_enabled: false | |
step_summary_enabled: true |