Skip to content

Commit 803e222

Browse files
Update documentation, readme and update workflows (#37)
1 parent de38577 commit 803e222

32 files changed

+485
-504
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*
2+
!cmake
3+
!src
4+
!include
5+
!Makefile
6+
!tests
7+
!validation
8+
!CMakeLists.txt

.github/workflows/_build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
image: alpine:3.17
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Install dependencies
2323
run: |

.github/workflows/_build_doc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ jobs:
2222
runs-on: ${{ inputs.os }}
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626

2727
- name: Set up Python ${{ inputs.python-version }}
28-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@v5
2929
with:
3030
python-version: ${{ inputs.python-version }}
3131

3232
- name: Install dependencies
3333
run: |
3434
python -m pip install --upgrade pip
35-
python -m pip install -r docs/requirements.txt
35+
python -m pip install -r doc/requirements.txt
3636
3737
- name: Build the documentation
3838
run: make doc

.github/workflows/_pre_commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- uses: pre-commit/[email protected]

.github/workflows/_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
image: alpine:3.17
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Install dependencies
2323
run: |

.github/workflows/cicd.yaml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
push:
1313
branches:
1414
- "**"
15+
schedule:
16+
- cron: "20 16 * * 0"
17+
release:
18+
types: [created]
1519

1620
concurrency:
1721
group: CICD-${{ github.ref }}
@@ -46,11 +50,41 @@ jobs:
4650
## Create and upload a docker image
4751
##
4852
Docker:
49-
if: success() && github.ref == 'refs/heads/dev'
53+
if: success() && github.event_name == 'push'
5054
needs: [Build, Test]
5155
uses: ./.github/workflows/_build_docker.yaml
5256
with:
5357
TAG: ${{ github.ref_name }}
5458
secrets:
5559
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
5660
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
61+
62+
## Create and upload the tagged docker image
63+
##
64+
Docker-tag:
65+
if: |
66+
success() &&
67+
github.actor == 'btschwertfeger' &&
68+
github.event_name == 'release'
69+
needs: [Build, Test]
70+
uses: ./.github/workflows/_build_docker.yaml
71+
with:
72+
TAG: ${{ github.ref_name }}
73+
secrets:
74+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
75+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
76+
77+
## Create and upload the latest docker image
78+
##
79+
Docker-latest:
80+
if: |
81+
success() &&
82+
github.actor == 'btschwertfeger' &&
83+
github.event_name == 'release'
84+
needs: [Build, Test]
85+
uses: ./.github/workflows/_build_docker.yaml
86+
with:
87+
TAG: latest
88+
secrets:
89+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
90+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

.github/workflows/release.yaml

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

.github/workflows/release.yml

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

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.5.0
44
hooks:
55
- id: check-yaml
66
- id: end-of-file-fixer

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build:
1313

1414
# Build documentation in the docs/ directory with Sphinx
1515
sphinx:
16-
configuration: docs/conf.py
16+
configuration: doc/conf.py
1717

1818
# If using Sphinx, optionally build your docs in additional formats such as PDF
1919
# formats:
@@ -22,4 +22,4 @@ sphinx:
2222
# Optionally declare the Python requirements required to build your docs
2323
python:
2424
install:
25-
- requirements: docs/requirements.txt
25+
- requirements: doc/requirements.txt

0 commit comments

Comments
 (0)