Create mirror.yml #212
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: 'Build Komodo' | |
on: | |
push: | |
branches-ignore: | |
- 'gh-pages' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macOS-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup nim | |
uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: 'stable' | |
# Run static analysis | |
- run: nimble check -Y | |
# Build examples | |
- name: "Build examples" | |
run: | | |
nimble develop | |
cd examples/desktop | |
nimble buildDesktop | |
# Generate the Docs | |
- name: Generate documentation | |
run: | | |
nimble docKomodo | |
cp htmldocs/theindex.html htmldocs/index.html | |
cp htmldocs/index.html htmldocs/404.html | |
cp README.md ./htmldocs/README.md | |
# Publish the website | |
- name: GitHub Pages action | |
if: ${{ github.ref == 'refs/heads/develop' }} # Publish only when the push is on develop | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.PUBLISH_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: htmldocs | |
allow_empty_commit: false | |
keep_files: false | |
force_orphan: true | |
# Custom Domain | |
# cname: somedomain.com |