shard-athena-negotiation/.github/workflows/deployment.yml

28 lines
686 B
YAML

name: Deployment
on:
push:
branches:
- master
jobs:
deploy_docs:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:latest-alpine
steps:
- name: Install Build Dependencies
run: apk add --update rsync
- uses: actions/checkout@v2
- name: Install Dependencies
run: shards install
- name: Build
run: crystal docs lib/athena-spec/src/athena-spec.cr src/athena-negotiation.cr
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
SINGLE_COMMIT: true