Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/build_and_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,12 @@ jobs:

release:
name: Release project
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
needs: [build]
if: >
always() &&
needs.build.result == 'success' &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment: release
permissions:
Expand Down Expand Up @@ -254,13 +258,23 @@ jobs:


docker:
name: Build and push Docker image
needs: [build, release]
if: |
always() &&
needs.build.result == 'success' &&
((github.event_name == 'schedule' && github.ref == 'refs/heads/main') ||
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')))
(
(github.event_name == 'schedule' && github.ref == 'refs/heads/main') ||
(
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v') &&
needs.release.result == 'success'
)
)
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/95.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improving stage skipping for releasing
Loading