-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (31 loc) · 740 Bytes
/
pages.yml
File metadata and controls
35 lines (31 loc) · 740 Bytes
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
name: Deploy Github Pages
on:
push:
branches:
- main
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
deploy-pages:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate single header file
run: |
pip install quom
if [[ -z "$(git tag --points-at HEAD)" ]]; then
DST=trunk
else
DST=$(git tag)
fi
mkdir -p web/dist/$DST
quom include/emio/emio.hpp web/dist/$DST/emio.hpp
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: web/
clean: false