Skip to content

fix: lead from demo website to cmd on test env #192

fix: lead from demo website to cmd on test env

fix: lead from demo website to cmd on test env #192

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:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
# cache: yarn
- name: If repo is website-prod replace text website.wopee.io to wopee.io and remove 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
rm -rf ./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@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "./build"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4