Skip to content

Commit d980570

Browse files
committed
create web-accessible single header
1 parent cceff11 commit d980570

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# template: https://github.com/Viatorus/emio/blob/main/.github/workflows/pages.yml
2+
name: Deploy Github Pages
3+
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
deploy-pages:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Generate single header file
17+
run: |
18+
pip install quom
19+
if [[ -z "$(git tag --points-at HEAD)" ]]; then
20+
DST=trunk
21+
else
22+
DST=$(git tag)
23+
fi
24+
mkdir -p web/dist/$DST
25+
quom -g __BITFILLED_.* -I bitfilled bitfilled/bitfilled.hpp web/dist/$DST/bitfilled.hpp
26+
27+
- name: Deploy
28+
uses: JamesIves/github-pages-deploy-action@v4
29+
with:
30+
branch: gh-pages
31+
folder: web/
32+
clean: false

0 commit comments

Comments
 (0)