Skip to content

wip: artifact name

wip: artifact name #3

Workflow file for this run

# .github/workflows/docs.yml
name: Docs
on:
workflow_call:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npx -y @redocly/cli build-docs api/api.yml --o docs/index.html
- uses: actions/upload-artifact@v4
name: docs
if: github.ref == 'refs/heads/main'
with:
path: docs
deploy:
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/download-artifact@v2
with:
name: docs
- uses: actions/deploy-pages@v4
id: deployment