-
-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (33 loc) · 1.01 KB
/
pages-deploy.yml
File metadata and controls
41 lines (33 loc) · 1.01 KB
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
40
41
name: Deploy demo to GitHub Pages
# Publishes the bundled simulation UI (HTML + the linked Scala.js bundle) to
# GitHub Pages. The page auto-detects that the http4s backend isn't reachable
# from a static host and flips the backend toggle to "simulation" — so the
# deployed demo is fully self-contained, no server required.
on:
push:
branches: [develop]
workflow_dispatch:
permissions:
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v5
- uses: sbt/setup-sbt@v1
- name: Build & copy the Scala.js bundle
run: sbt copySimJs
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v5
with:
path: bifunctor-tagless/jvm/src/main/resources/webapp
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5