Skip to content

Commit 976e489

Browse files
authored
Merge pull request #3 from ti-uni-bielefeld/add_docs_to_release
Upload documenation as release asset when creating a new release
2 parents 4d0aa9a + c4bbf8e commit 976e489

File tree

3 files changed

+47
-60
lines changed

3 files changed

+47
-60
lines changed

.github/workflows/doxygen.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
name: Prepare Release
1+
name: Prepare Release and Deploy Documentation to GitHub Pages
22

33
on:
44
push:
55
tags:
66
- "v*.*.*"
7+
branches:
8+
- "main"
79

10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages and creating a release
811
permissions:
912
contents: write
13+
pages: write
14+
id-token: write
15+
16+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
1021

1122
defaults:
1223
run:
@@ -15,19 +26,49 @@ defaults:
1526
jobs:
1627
build:
1728
runs-on: ubuntu-latest
29+
env:
30+
DOXYGEN_VERSION: 1.12.0
1831
steps:
1932
- name: Install quom
2033
run: sudo pip3 install quom
2134
- name: Install clang-format
2235
run: sudo pip3 install clang-format
36+
- name: Install doxygen
37+
run: |
38+
wget -nv https://www.doxygen.nl/files/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
39+
tar -xzf doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
40+
sudo cp doxygen-${DOXYGEN_VERSION}/bin/* /usr/bin
2341
- name: Checkout
2442
uses: actions/checkout@v4
2543
- name: Make single header
2644
run: make single-header
45+
- name: Make documentation
46+
run: make doc
47+
- name: Zip documentation
48+
run: zip -r T-SIMD_documentation.zip docs/html
2749
- name: Prepare Release
2850
uses: softprops/action-gh-release@v2
2951
with:
30-
files: build/tsimd.H
52+
files: |
53+
build/tsimd.H
54+
T-SIMD_documentation.zip
3155
draft: true
3256
generate_release_notes: true
3357
make_latest: true
58+
- name: Setup Pages
59+
uses: actions/configure-pages@v5
60+
- name: Upload docs as artifact
61+
uses: actions/upload-pages-artifact@v3
62+
with:
63+
path: 'docs/html'
64+
65+
deploy:
66+
environment:
67+
name: github-pages
68+
url: ${{ steps.deployment.outputs.page_url }}
69+
runs-on: ubuntu-latest
70+
needs: build
71+
steps:
72+
- name: Deploy to GitHub Pages
73+
id: deployment
74+
uses: actions/deploy-pages@v4

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ The documentation of **T-SIMD** is available [here](https://ti-uni-bielefeld.git
1818

1919
For documentation of functions and classes, see the [Library Reference](https://ti-uni-bielefeld.github.io/T-SIMD/topics.html).
2020

21+
The documentation for the current release is also available [here](https://github.com/ti-uni-bielefeld/T-SIMD/releases/latest/download/T-SIMD_documentation.zip).
22+
23+
To download the documentation of previous releases, see the [GitHub releases page](https://github.com/ti-uni-bielefeld/T-SIMD/releases)
24+
2125
For further information on the **T-SIMD** library and the SIMD implementation of Warping methods, including related papers, videos, and image databases see https://www.ti.uni-bielefeld.de/html/people/moeller/tsimd_warpingsimd.html.
2226

2327
## Example

0 commit comments

Comments
 (0)