Merge pull request #2 from CANDELbio/candelbio-namespace #10
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
# Run on macos because graphviz has some kind of size bug on Ubuntu | |
runs-on: macos-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }} | |
steps: | |
- uses: actions/checkout@v3 | |
# TODO Macos only | |
- name: Install lein | |
run: brew install leiningen | |
- name: Install Graphviz | |
uses: tlylt/[email protected] | |
- name: Install Pret | |
uses: actions/checkout@v3 | |
with: | |
repository: CANDELbio/pret | |
path: pret | |
- name: Build Alzabo cljs | |
run: lein with-profile +prod,-dev cljsbuild once | |
- name: Run Alzabo | |
run: lein run resources/candel-config.edn documentation | |
- name: Upload GitHub Pages artifact | |
uses: actions/[email protected] | |
with: | |
path: resources/public/schema/1.3.1 | |
retention-days: 14 | |
# Deploy job | |
deploy: | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 | |