Skip to content

Commit eff45eb

Browse files
committed
Tweaks to push workflow.
1 parent fa721fc commit eff45eb

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/push.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
on:
22
- push
33

4+
name: Build and Deploy
5+
46
jobs:
5-
build-and-test:
7+
build:
68
runs-on: ubuntu-latest
79
steps:
810
- name: Checkout
@@ -15,12 +17,12 @@ jobs:
1517
sudo apt-get install fonts-stix
1618
sudo apt-get install libunistring-dev
1719
- name: Install Racket
18-
uses: Bogdanp/setup-racket@v1.11
20+
uses: Bogdanp/setup-racket@v1.14
1921
with:
2022
architecture: 'x64'
2123
distribution: 'full'
2224
variant: 'CS'
23-
version: '8.14'
25+
version: '8.18'
2426
- name: Install a86 and langs
2527
run: |
2628
git clone https://github.com/cmsc430/a86.git
@@ -33,13 +35,21 @@ jobs:
3335
# raco pkg install --auto www/
3436
raco make www/main.scrbl
3537
make -C www main
36-
- name: Archive www
38+
- name: Upload www for GitHub Pages
3739
uses: actions/upload-pages-artifact@v3
3840
with:
3941
name: github-pages
4042
path: www/main
41-
deploy:
42-
needs: build-and-test
43+
- name: Upload www as artifact
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: site-static
47+
path: www/main
48+
if-no-files-found: error
49+
retention-days: 7
50+
51+
deploy-github-pages:
52+
needs: build
4353
permissions:
4454
pages: write
4555
id-token: write

0 commit comments

Comments
 (0)