diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 20eefab..c23a7f8 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -9,7 +9,6 @@ on: jobs: maven_pr_check: - if: (github.event_name == 'pull_request' || github.event_name == 'push') && github.ref != 'refs/heads/main' uses: NationalLibraryOfNorway/tekst-workflows/.github/workflows/maven-check.yml@main with: JDK_VERSION: 17 diff --git a/.github/workflows/publish-prod-release.yml b/.github/workflows/publish-prod-release.yml index 0e94039..397e86a 100644 --- a/.github/workflows/publish-prod-release.yml +++ b/.github/workflows/publish-prod-release.yml @@ -1,13 +1,13 @@ name: Test tekst-workflows on: - release: - types: - - created + push: + tags: + - v* jobs: build_maven_pipeline: - if: github.event_name == 'release' && github.ref == 'refs/tags/v*' uses: NationalLibraryOfNorway/tekst-workflows/.github/workflows/maven-build-and-deploy.yml@main + environment: prod with: ENVIRONMENT: prod JDK_VERSION: 17