Skip to content

downgraded deploy pages action #2

downgraded deploy pages action

downgraded deploy pages action #2

Workflow file for this run

on:
push:
branches:
- main
jobs:
build_docs:
name: prepare_docs_artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run build -w react-ux-semantics-docs
- uses: actions/upload-artifact@v4
with:
name: github-pages
path: react-ux-semantics-docs/build
deploy_docs:
needs: build_docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2