-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.11 KB
/
racket-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Racket Publish
on:
push:
branches: [develop]
paths:
- "**publish.yml"
- "**.scrbl"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache installed packages
uses: actions/cache@v2
with:
path: |
~/.cache/racket
~/.local/share/racket
key: ${{ runner.os }}-primes
- uses: Bogdanp/[email protected]
with:
architecture: "x64"
distribution: "minimal"
variant: "CS"
version: "current"
- name: Build
run: |
raco pkg install --auto --skip-installed
raco scribble --htmls ++main-xref-in --redirect-main http://docs.racket-lang.org/ --dest doc scribblings/${{ github.event.repository.name }}.scrbl
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/${{ github.event.repository.name }}
publish_branch: master