Skip to content

Commit 45ee88a

Browse files
authored
Update ci.yml
1 parent 7135b3a commit 45ee88a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: CI/CD
22
on:
33
push:
4+
branches:
5+
- "*"
46
tags:
57
- "v*"
68
schedule:
@@ -21,6 +23,7 @@ jobs:
2123
run: |
2224
test ! -z "$(ls -A ./result)"
2325
push-to-registries:
26+
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.event_name == 'schedule' }}
2427
name: Push Docker image to multiple registries
2528
runs-on: ubuntu-latest
2629
needs:
@@ -74,7 +77,7 @@ jobs:
7477
tags: ${{ steps.meta.outputs.tags }}
7578
labels: ${{ steps.meta.outputs.labels }}
7679
update-gh-pages:
77-
if: startsWith(github.ref, 'refs/tags/v')
80+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
7881
name: Generate and upload new GitHub Pages
7982
runs-on: ubuntu-latest
8083
needs:

0 commit comments

Comments
 (0)