Skip to content

Commit 83f1cfe

Browse files
Kaniska244Copilot
andauthored
Build workflow modification (#1663)
* Build workflow modification * Update .github/workflows/push.yml Co-authored-by: Copilot <[email protected]> * Adding workflow_dispatch * small correction --------- Co-authored-by: Copilot <[email protected]>
1 parent 311d3ac commit 83f1cfe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/push.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Build and push images
22

3-
on:
4-
push:
5-
tags:
6-
- 'v*'
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
77

88
jobs:
99
build-and-push:
1010
name: Build and push images
11-
if: ${{ github.event.base_ref == 'refs/heads/main' }}
11+
if: ${{ github.event.release.target_commitish == 'main' }}
1212
strategy:
1313
matrix:
1414
page: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70]

0 commit comments

Comments
 (0)