1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-22 20:35:44 +01:00

Run CI workflows on each GitHub release

This commit is contained in:
q-posev 2022-03-07 14:34:23 +01:00
parent f9908b21a0
commit de9c8fad1f
2 changed files with 8 additions and 6 deletions

View File

@ -2,12 +2,14 @@ name: TREXIO CI
on: on:
push: push:
branches: [ master ] branches:
- master
tags:
# After vMajor.Minor.Patch _anything_ is allowed (without "/") !
- v[0-9]+.[0-9]+.[0-9]+*
pull_request: pull_request:
branches: [ master ] branches: [ master ]
release:
types:
- published
jobs: jobs:

View File

@ -38,7 +38,7 @@ jobs:
needs: get_commit_message needs: get_commit_message
if: >- if: >-
contains(needs.get_commit_message.outputs.message, '[wheel build]') || contains(needs.get_commit_message.outputs.message, '[wheel build]') ||
github.event_name == 'release' (github.repository == 'TREX-CoE/trexio' && startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -99,7 +99,7 @@ jobs:
needs: get_commit_message needs: get_commit_message
if: >- if: >-
contains(needs.get_commit_message.outputs.message, '[wheel build]') || contains(needs.get_commit_message.outputs.message, '[wheel build]') ||
github.event_name == 'release' (github.repository == 'TREX-CoE/trexio' && startsWith(github.ref, 'refs/tags/v'))
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix: