From 8df23189456099b7f0028bc98db51869515c322f Mon Sep 17 00:00:00 2001 From: Michael F Date: Wed, 25 Oct 2023 17:36:38 +0200 Subject: [PATCH] publish only master with new semvar tag --- .github/workflows/github-packages-publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github-packages-publish.yml b/.github/workflows/github-packages-publish.yml index bf47a8d..01ea37a 100644 --- a/.github/workflows/github-packages-publish.yml +++ b/.github/workflows/github-packages-publish.yml @@ -6,14 +6,13 @@ name: Docker # documentation. on: - schedule: - - cron: '38 1 * * *' + workflow_dispatch: push: branches: [ "master" ] # Publish semver tags as releases. - tags: [ 'v*.*.*' ] - pull_request: - branches: [ "master" ] + # tags: [ 'v*.*.*' ] + # pull_request: + # branches: [ "master" ] env: # Use docker.io for Docker Hub if empty @@ -26,6 +25,7 @@ jobs: build: runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') permissions: contents: read packages: write