From f349c40b4dab17c4ee6ce1c26511828d8de18c84 Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Thu, 18 Nov 2021 12:06:37 +0900 Subject: [PATCH] add crystal docs workflow --- .github/workflows/documentation.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..eb73506 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,29 @@ + name: website + +on: + push: + branches: [ master ] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Install Crystal + uses: crystal-lang/install-crystal@v1 + with: + crystal: nightly + - name: Check out repository code + uses: actions/checkout@v2 + - name: Install dependencies + run: shards install + - name: Generate documentation + run: crystal docs + - + name: Deploy to GitHub Pages + if: success() + uses: crazy-max/ghaction-github-pages@v2 + with: + target_branch: gh-pages + build_dir: docs + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}