Skip to content

Move to GitHub Actions (#26) #2

Move to GitHub Actions (#26)

Move to GitHub Actions (#26) #2

Workflow file for this run

name: Documentation
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:latest-alpine
steps:
- uses: actions/checkout@v4
- name: Build
run: crystal docs -o /docs
- name: Deploy
run: |
git config user.name CI
git config user.email ""
git checkout -f --orphan gh-pages
git rm --cached -rfq .
git clean -fxdq
mv /docs/* .
git add .
git commit -qm "Update docs"
git push -f --set-upstream origin gh-pages