Skip to content

Corrected attach endpoint definition #8

Corrected attach endpoint definition

Corrected attach endpoint definition #8

Workflow file for this run

name: Documentation
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: 1.10.1
- name: Install dependencies
run: shards install
- name: Build docs
run: |
REF_SLUG=$(echo "${{ github.ref }}" | sed 's/refs\/heads\///' | sed 's/\//_/g')
SHA_SHORT=$(echo "${{ github.sha }}" | cut -c1-7)
crystal docs --project-version="$REF_SLUG" --source-refname="$SHA_SHORT"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2