Skip to content

Commit a9eedaa

Browse files
soraweemflatt
authored andcommitted
ci: add a workflow to push to racket-lang.org
This will require adding a secret to the GitHub repo setting under the key `AWS_KEY`.
1 parent 1a9c30c commit a9eedaa

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/push.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Push to racket-lang.org
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
coverage:
7+
name: Build and push the site
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Racket
15+
uses: Bogdanp/[email protected]
16+
with:
17+
architecture: 'x64' # or: 'x64', 'x86', 'arm32', 'arm64'
18+
distribution: 'full' # or: 'minimal'
19+
variant: 'CS' # or: 'BC' for Racket Before Chez
20+
version: '8.10'
21+
22+
- name: Install package
23+
run: raco pkg install --auto --no-docs -n racket-lang-org `pwd`
24+
25+
- name: Setup credentials
26+
run: echo "$KEY" > ~/.aws-keys
27+
env:
28+
KEY: ${{secrets.AWS_KEY}}
29+
30+
- name: Build everything (headless display via xvfb)
31+
run: xvfb-run racket -l- racket-lang-org/sync

0 commit comments

Comments
 (0)