@@ -2,15 +2,14 @@ name: Build and test
22
33on :
44push :
5- branches :[ "master" ]
6- tags :
7- -" v*"
8- pull_request :
9- branches :[ "master" ]
5+ branches :[ "v1.3" ]
106
117env :
128BUILD_TYPE :Release
139COVERALLS_PULL_REQUEST :${{ github.event.number }}
10+ GIT_REF :${{github.ref}}
11+ GIT_EVENT_REF :${{github.event.ref}}
12+ GIT_EVENT_TYPE :${{github.event.type}}
1413
1514jobs :
1615build :
3231 -{ os: windows-latest, compiler: msvc, cxx_stdlib: msvc }
3332
3433steps :
34+ -name :Output Infos
35+ run :|
36+ echo $GIT_REF
37+ echo $GIT_EVENT_REF
38+ echo $GIT_EVENT_TYPE
39+
3540 -uses :actions/checkout@v5
3641 -name :Prepare dependencies
3742run :|
@@ -116,11 +121,12 @@ jobs:
116121shell :bash
117122
118123 -name :Generate coverage report
119- if :matrix.os == 'ubuntu-latest' && matrix.compiler == 'gcc' && matrix.cxx_stdlib == 'libstdc++' && matrix.asio_type == 'boost' && !startsWith(github.ref, 'refs/tags /v')
124+ if :matrix.os == 'ubuntu-latest' && matrix.compiler == 'gcc' && matrix.cxx_stdlib == 'libstdc++' && matrix.asio_type == 'boost' && !startsWith(github.ref, 'refs/heads /v')
120125run :|
121126 export CI_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}
122127 echo "CI_BRANCH=$CI_BRANCH" >> $GITHUB_ENV && \
123128 export TRAVIS_JOB_ID=$GITHUB_RUN_NUMBER && \
129+ echo gitref= {{github.ref}} && \
124130 git clone https://github.com/CrowCpp/cpp-coveralls.git && \
125131 cd cpp-coveralls && \
126132 pip3 install . --no-input && \
@@ -130,7 +136,7 @@ jobs:
130136
131137 -name :Save report
132138uses :actions/upload-artifact@v4
133- if :matrix.os == 'ubuntu-latest' && matrix.compiler == 'gcc' && matrix.cxx_stdlib == 'libstdc++' && matrix.asio_type == 'boost' && !startsWith(github.ref, 'refs/tags /v')
139+ if :matrix.os == 'ubuntu-latest' && matrix.compiler == 'gcc' && matrix.cxx_stdlib == 'libstdc++' && matrix.asio_type == 'boost' && !startsWith(github.ref, 'refs/heads /v')
134140with :
135141name :coveralls.json
136142path :coveralls.json
@@ -140,7 +146,7 @@ jobs:
140146run :cmake --build . --target package
141147
142148 -name :Generate checksums
143- if :matrix.os == 'ubuntu-latest' && matrix.compiler == 'gcc' && matrix.cxx_stdlib == 'libstdc++' && matrix.asio_type == 'boost' && startsWith(github.ref, 'refs/tags /v')
149+ if :matrix.os == 'ubuntu-latest' && matrix.compiler == 'gcc' && matrix.cxx_stdlib == 'libstdc++' && matrix.asio_type == 'boost' && startsWith(github.ref, 'refs/heads /v')
144150working-directory :${{github.workspace}}/build
145151run :|
146152 for f in Crow-* crow_all.h; do
@@ -150,7 +156,7 @@ jobs:
150156 done
151157
152158 -uses :actions/upload-artifact@v4
153- if :matrix.os == 'ubuntu-latest' && matrix.compiler == 'gcc' && matrix.cxx_stdlib == 'libstdc++' && matrix.asio_type == 'boost' && startsWith(github.ref, 'refs/tags /v')
159+ if :matrix.os == 'ubuntu-latest' && matrix.compiler == 'gcc' && matrix.cxx_stdlib == 'libstdc++' && matrix.asio_type == 'boost' && startsWith(github.ref, 'refs/heads /v')
154160with :
155161name :packages
156162path :|