Merge branch 'main' of https://github.com/BAMresearch/McSAS3 #39
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: CI-CD | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
# check if everything works first | |
tests: | |
uses: ./.github/workflows/tests.yml | |
# make a new version next, release or prerelease | |
release: | |
needs: [tests] | |
uses: ./.github/workflows/release.yml | |
build: | |
needs: [release, tests] # build only if all tests are successful | |
uses: ./.github/workflows/build.yml | |
secrets: inherit | |
docs: | |
needs: [release] # get (release) version number first | |
uses: ./.github/workflows/docs.yml | |
coverage: | |
needs: [tests, docs] # coverage report is added to the docs webpage | |
uses: ./.github/workflows/coverage.yml |