Skip to content

Dockset

Dockset #27

Workflow file for this run

name: Dockset
on:
workflow_dispatch:
inputs:
crystalVersion:
description: "Crystal version"
required: true
jobs:
build:
name: Build dockset for Crystal version ${{ inputs.crystalVersion }}
runs-on: macos-latest
env:
CRYSTAL_VERSION: ${{ inputs.crystalVersion }}
steps:
- name: Download source
uses: actions/checkout@v3
- name: Install dependencies
run: brew bundle
- name: Download docs
run: ./download.sh
- name: Build docset
run: ./build.sh
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Crystal
path: Crystal.tgz
- name: Create a new Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.CRYSTAL_VERSION }}
name: Crystal ${{ env.CRYSTAL_VERSION }}
body: |
`Crystal.docset` auto-generated for Crystal ${{ env.CRYSTAL_VERSION }}
Sources:
- https://crystal-lang.org/reference/
- https://crystal-lang.org/api/${{ env.CRYSTAL_VERSION }}/
files: |
Crystal.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}