Added step to perform release on tag #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install doxygen graphviz gcovr valgrind sloccount | |
- name: Configure | |
run: ./configure | |
- name: Run checks | |
run: make rungcov valgrindu runtestc valgrindc sloccount | |
- name: Build & package | |
run: make build doc dev_doc deb | |
- name: Retrieve version number | |
id: requestMakefile | |
run: | | |
echo "VERSION=$(make help_version)" >> $GITHUB_OUTPUT | |
- name: Archive .deb | |
uses: actions/upload-artifact@v3 | |
with: | |
name: deb | |
path: ./results/artifacts/aum_${{ steps.requestMakefile.outputs.VERSION }}.deb | |
if-no-files-found: error | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
./results/artifacts/aum_${{ steps.requestMakefile.outputs.VERSION }}.deb | |
fail_on_unmatched_files: true |