|
71 | 71 | run: cmake --build "$BUILD_DIR" --target package
|
72 | 72 |
|
73 | 73 | - name: Generate artifact attestation
|
| 74 | + if: github.ref_type == 'tag' |
74 | 75 | uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
|
75 | 76 | with:
|
76 | 77 | subject-path: "${{ env.BUILD_DIR }}/*.tar.gz,${{ env.BUILD_DIR }}/*.deb,${{ env.BUILD_DIR }}/*.rpm"
|
@@ -113,6 +114,7 @@ jobs:
|
113 | 114 | cmake --build "$BUILD_DIR" --target package
|
114 | 115 |
|
115 | 116 | - name: Generate artifact attestation
|
| 117 | + if: github.ref_type == 'tag' |
116 | 118 | uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
|
117 | 119 | with:
|
118 | 120 | subject-path: "${{ env.BUILD_DIR }}/*.tar.gz"
|
@@ -156,6 +158,7 @@ jobs:
|
156 | 158 | run: cmake --build "$BUILD_DIR" --target package
|
157 | 159 |
|
158 | 160 | - name: Generate artifact attestation
|
| 161 | + if: github.ref_type == 'tag' |
159 | 162 | uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
|
160 | 163 | with:
|
161 | 164 | subject-path: "${{ env.BUILD_DIR }}/*.tar.gz,${{ env.BUILD_DIR }}/*.pkg"
|
@@ -226,6 +229,7 @@ jobs:
|
226 | 229 | run: cmake --build "$BUILD_DIR" --target package
|
227 | 230 |
|
228 | 231 | - name: Generate artifact attestation
|
| 232 | + if: github.ref_type == 'tag' |
229 | 233 | uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
|
230 | 234 | with:
|
231 | 235 | subject-path: "${{ env.BUILD_DIR }}/*.zip"
|
@@ -275,6 +279,7 @@ jobs:
|
275 | 279 | run: cmake --build "$env:BUILD_DIR" --config ${{ matrix.configuration }} --target package
|
276 | 280 |
|
277 | 281 | - name: Generate artifact attestation
|
| 282 | + if: github.ref_type == 'tag' |
278 | 283 | uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
|
279 | 284 | with:
|
280 | 285 | subject-path: "${{ env.BUILD_DIR }}/*.zip"
|
@@ -365,6 +370,7 @@ jobs:
|
365 | 370 | tar cvf "${PACKAGE_DIR}.tar.gz" "${PACKAGE_DIR}"
|
366 | 371 |
|
367 | 372 | - name: Generate artifact attestation
|
| 373 | + if: github.ref_type == 'tag' |
368 | 374 | uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
|
369 | 375 | with:
|
370 | 376 | subject-path: "${{ env.PACKAGE_DIR }}.tar.gz"
|
|
0 commit comments