Skip to content

Add new-landing2: new hero design with original homepage content #131

Add new-landing2: new hero design with original homepage content

Add new-landing2: new hero design with original homepage content #131

name: Deploy Homedocs
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Build required cx packages and themes
run: yarn workspace cx-react run build && yarn workspace cx run build && yarn workspace cx-theme-variables run build
- name: Build homedocs
run: yarn --cwd homedocs build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3
with:
publish-dir: "./homedocs/dist"
production-deploy: true
deploy-message: "${{ github.event.head_commit.message }}"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./homedocs/dist"
deploy-github-pages:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4