Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore(gh-ci): Publish on release only (#1662)
  • Loading branch information
kilchenmann committed Jun 24, 2020
1 parent 24db3bf commit 787dca8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .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
Expand Down Expand Up @@ -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,
Expand All @@ -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:
Expand Down

0 comments on commit 787dca8

Please sign in to comment.