Skip to content

Commit

Permalink
Automatically Generate Releases on Version Tags (#14)
Browse files Browse the repository at this point in the history
* Added release workflow

* Update release.yml

* Removed legacy release packaging
  • Loading branch information
adlerjan authored Jun 7, 2024
1 parent 5dd4170 commit c33aa9d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
sudo apt-get install -y build-essential octave portaudio19-dev python-dev-is-python3
export MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)"
pip install -e .[develop,test,documentation,quadriga,uhd,audio]
python -m setup develop
- name: Run unit tests
run: |
Expand Down Expand Up @@ -83,10 +82,3 @@ jobs:
- name: Build documentation
run: sphinx-build docssource/ documentation/

- name: Create github pages
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@4.1.2
with:
branch: gh-pages
folder: documentation
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Documentation

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

env:
HERMES_QUADRIGA: ${{ github.workspace }}/submodules/quadriga/quadriga_src

jobs:

Documentation-Release:

runs-on: ubuntu-latest
steps:

- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
submodules: recursive

- name: Setup python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Install doc dependencies
run: |
sudo apt update
sudo apt-get install -y build-essential octave portaudio19-dev python-dev-is-python3 pandoc graphviz
export MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)"
pip install -e .[test,documentation,quadriga,uhd,audio]
- name: Build documentation
run: sphinx-build docssource/ documentation/

# ToDo: Execute this action only on the highest tag
- name: Create github pages
uses: JamesIves/github-pages-deploy-action@4.1.2
with:
branch: gh-pages
folder: documentation

0 comments on commit c33aa9d

Please sign in to comment.