Skip to content

Update README build status badge #17

Update README build status badge

Update README build status badge #17

Workflow file for this run

name: build
on: [push]
defaults:
run:
working-directory: repo
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
racket-version: [ '7.4', '7.9', '8.0', '8.3', stable ]
steps:
- uses: actions/checkout@v2
with: { path: repo }
- uses: Bogdanp/[email protected]
with:
version: ${{ matrix.racket-version }}
dest: '$GITHUB_WORKSPACE/racket'
sudo: never
- name: install
run: raco pkg install --installation --auto --link commonmark-{bench,doc,lib,test}
- name: test
run: raco test -ep commonmark-{bench,doc,lib,test}
- name: deploy_docs
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' && matrix.racket-version == 'stable' }}
run: |
set -e
scribble +m --redirect https://docs.racket-lang.org/local-redirect/index.html \
--dest docs --dest-name index commonmark-doc/scribblings/commonmark.scrbl
cd docs
git init -b gh-pages
git config user.name 'GitHub Actions'
git config user.email '[email protected]'
git add .
git commit -m 'Deploy to GitHub Pages'
git push --force 'https://lexi-lambda:${{ github.token }}@github.com/${{ github.repository }}' gh-pages