Update workflows

This commit is contained in:
Tyrrrz
2023-11-16 21:45:30 +02:00
parent db1da5545a
commit 576ee73bfc
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
name: docker
on:
workflow_dispatch:
push:
pull_request:
@@ -36,7 +37,7 @@ jobs:
deploy:
# Deploy to DockerHub only on tag push or master branch push
if: ${{ github.event_name == 'push' && (github.ref_type == 'tag' || github.ref_type == 'branch' && github.ref_name == 'master') }}
if: ${{ github.ref_type == 'tag' || github.ref_type == 'branch' && github.ref_name == 'master' }}
runs-on: ubuntu-latest
permissions:
contents: read

View File

@@ -1,6 +1,7 @@
name: main
on:
workflow_dispatch:
push:
pull_request:
@@ -79,7 +80,7 @@ jobs:
if-no-files-found: error
release:
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
if: ${{ github.ref_type == 'tag' }}
needs:
- test