|
1 | | -name: "Deploy Documentation" |
| 1 | +name: "Continuous Deployment" |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | 5 | tags: |
6 | 6 | - "*" |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - docs: |
10 | | - runs-on: ubuntu-18.04 |
| 9 | + |
| 10 | + ############################################################################# |
| 11 | + # Create and online deployment of the documentation ######################### |
| 12 | + docs: ####################################################################### |
| 13 | + runs-on: ubuntu-latest |
11 | 14 | steps: |
12 | | - - uses: actions/checkout@v2 |
| 15 | + - uses: actions/checkout@v4 |
13 | 16 |
|
14 | 17 | - name: Setup miniconda |
15 | | - uses: conda-incubator/setup-miniconda@v2 |
| 18 | + uses: conda-incubator/setup-miniconda@v3 |
16 | 19 | with: |
17 | 20 | auto-update-conda: true |
18 | | - python-version: 3.7 |
19 | | - |
20 | | - - name: Conda install dependecies |
21 | | - shell: bash -l {0} |
22 | | - run: conda install --yes -c conda-forge pythonocc-core=7.4.0 numpy scipy matplotlib vtk nose setuptools coveralls sphinx_rtd_theme sphinx python=3.7 |
23 | | - |
24 | | - - name: Conda info |
25 | | - shell: bash -l {0} |
26 | | - run: conda info |
| 21 | + python-version: 3.10 |
27 | 22 |
|
28 | | - - name: Conda info |
29 | | - shell: bash -l {0} |
30 | | - run: cd docs && sphinx-build -b html -d build/doctrees --keep-going --no-color -w '/tmp/sphinx-log' source build/html |
31 | | - |
32 | | - #- name: Create the new documentation |
33 | | - #uses: ammaraskar/sphinx-action@master |
34 | | - #with: |
35 | | - #docs-folder: "docs/" |
36 | | - #pre-build-command: "ls -l /usr/share" |
37 | | - #build-command: "sphinx-build -b html -d build/doctrees --keep-going --no-color -w '/tmp/sphinx-log' source build/html" |
| 23 | + - name: Install Dependencies (conda and pip) |
| 24 | + shell: bash |
| 25 | + run: | |
| 26 | + conda install --yes -c conda-forge pythonocc-core |
| 27 | + python -m pip install --upgrade pip |
| 28 | + python -m pip install .[doc] |
38 | 29 |
|
| 30 | + - name: Build Documentation |
| 31 | + run: | |
| 32 | + make html |
| 33 | + working-directory: docs/ |
39 | 34 |
|
40 | 35 | - name: Deploy |
41 | 36 | uses: peaceiris/actions-gh-pages@v3 |
42 | 37 | with: |
43 | 38 | github_token: ${{ secrets.GITHUB_TOKEN }} |
44 | | - #deploy_key: ${{ secrets.DEPLOY_PRIVATE_KEY }} |
45 | 39 | publish_dir: ./docs/build/html |
46 | 40 | allow_empty_commit: true |
| 41 | + |
| 42 | + ############################################################################# |
| 43 | + ## Create a public "Release" on the Github page ############################# |
| 44 | + release_github: ############################################################# |
| 45 | + runs-on: ubuntu-latest |
| 46 | + permissions: |
| 47 | + contents: write |
| 48 | + steps: |
| 49 | + - uses: actions/checkout@v4 |
| 50 | + - uses: ncipollo/release-action@v1 |
| 51 | + with: |
| 52 | + token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments