Skip to content

[ADD] github page as variable #10

[ADD] github page as variable

[ADD] github page as variable #10

Workflow file for this run

name: Build and Deploy Docs to GitHub Pages
on:
push:
branches:
- master
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Cache Node.js dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-cache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-cache-${{ runner.os }}-
- name: Install dependencies
run: npm install
- name: Build docs
run: npm run docs:build:master
- name: Upload production-ready files
uses: actions/upload-artifact@v3
with:
name: dist-files
path: ./docs/.vitepress/dist
deploy:
permissions:
pages: write # To deploy to GitHub Pages
id-token: write # Required for Pages deployment
needs: build
runs-on: ubuntu-latest
env:
GITHUB_PAGE_URL: ${{ steps.deploy.outputs.page_url }}

Check failure on line 49 in .github/workflows/deploy-docs.yml

View workflow run for this annotation

GitHub Actions / Build and Deploy Docs to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-docs.yml (Line: 49, Col: 24): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.deploy.outputs.page_url
steps:
- name: Download production-ready files
uses: actions/download-artifact@v3
with:
name: dist-files
- name: Deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v1
with:
artifact: dist-files