| 1 |
# deploy to github pages |
| 2 |
name: Build and Deploy |
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
jobs: |
| 8 |
deploy: |
| 9 |
concurrency: ci-${{ github.ref }} |
| 10 |
runs-on: ubuntu-latest |
| 11 |
steps: |
| 12 |
- name: Checkout 🛎️ |
| 13 |
uses: actions/checkout@v3 |
| 14 |
with: |
| 15 |
fetch-depth: 0 |
| 16 |
|
| 17 |
- name: Build |
| 18 |
run: | |
| 19 |
echo "__version__ = '$(git describe --tags)'" > cxxheaderparser/version.py |
| 20 |
|
| 21 |
mkdir build |
| 22 |
cp -r cxxheaderparser build |
| 23 |
|
| 24 |
|
| 25 |
- name: Deploy 🚀 |
| 26 |
uses: JamesIves/[email protected] |
| 27 |
with: |
| 28 |
branch: gh-pages |
| 29 |
folder: build |
| 30 |
clean: true |
| 31 |
clean-exclude: | |
| 32 |
.nojekyll |
| 33 |
index.html |
| 34 |
_index.py |