Skip to content

Explicitly use artifact_name for uploaded yard docs #320

Explicitly use artifact_name for uploaded yard docs

Explicitly use artifact_name for uploaded yard docs #320

Workflow file for this run

---
name: Deploy API docs to GitHub Pages
on:
push:
branches: ["i1225-fix-again", "main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy_yard:
# the deploy environment (not to be confused with env)
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
name: Build and deploy YARD
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec yard
shell: bash
- uses: actions/configure-pages@v5
- uses: actions/upload-artifact@v4
with:
# Yard puts everything into a folder called 'doc' by default
path: "doc"
- id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: "artifact.zip"