Dockset #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |