Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
chore(gh-ci): Publish on release only (#1662)
- Loading branch information
Showing
with
7 additions
and
4 deletions.
-
+7
−4
.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: |
|
|