From 787dca823c80bdeb485b134623b1f033020d3e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?= Date: Wed, 24 Jun 2020 18:08:03 +0200 Subject: [PATCH] chore(gh-ci): Publish on release only (#1662) --- .github/workflows/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70aa983606..da3d7a3790 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ name: CI -on: [push] +on: + push: + release: + types: [published] env: KNORA_GDB_LICENSE: ${{ github.workspace }}/ci/graphdb/UNIBAS_DEV_GRAPHDB_SE_latest-31-12-2020_1cores.license @@ -257,9 +260,9 @@ jobs: df -h docker system df - # publish only for develop and tags + # publish only on release publish: - name: Publish to Dockerhub + name: Publish to Dockerhub (on release only) needs: [ api-unit-tests, api-e2e-tests, @@ -268,7 +271,7 @@ jobs: docs-build-test ] runs-on: ubuntu-latest - if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags') + if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags') steps: - uses: actions/checkout@v1 with: