[1.2.1]: Fix deploy script and allow to clear data #40
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: Docs | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-22.04 | |
container: | |
image: crystallang/crystal | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- name: Install rsync 📚 | |
run: | | |
apt-get update && apt-get install -y rsync | |
- name: Build docs | |
run: crystal docs --project-name Representer --project-version 1.2.0 | |
- name: Deploy docs | |
uses: JamesIves/github-pages-deploy-action@a1ea191d508feb8485aceba848389d49f80ca2dc | |
with: | |
branch: gh-pages | |
folder: docs # The folder the action should deploy. | |
clean: true |