Skip to content

Merge pull request #215 from autonomous-testing/a11y/homepage-fixes #119

Merge pull request #215 from autonomous-testing/a11y/homepage-fixes

Merge pull request #215 from autonomous-testing/a11y/homepage-fixes #119

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
env:
# upload-pages-artifact@v4 (latest) bundles Node 20 internally.
# Force Node 24 until the action releases a version with native support.
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
# cache: yarn
- name: If repo is website-prod replace text website.wopee.io to wopee.io and write production robots.txt
if: github.repository == 'autonomous-testing/website-prod'
run: |
sed -i 's/website.wopee.io/wopee.io/g' ./CNAME
sed -i 's/website.wopee.io/wopee.io/g' ./docusaurus.config.js
sed -i 's/dev.wopee.io/wopee.io/g' ./cmdBaseUrl.js
cp ./static/robots.prod.txt ./static/robots.txt
- name: If repo is website-prod replace text website.wopee.io to wopee.io and remove robots.txt
if: github.repository == 'autonomous-testing/website-demo'
run: |
sed -i 's/website.wopee.io/demo.wopee.io/g' ./CNAME
sed -i 's/website.wopee.io/demo.wopee.io/g' ./docusaurus.config.js
sed -i 's/dev.wopee.io/test.wopee.io/g' ./cmdBaseUrl.js
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
# Upload entire repository
path: "./build"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5