Skip to content

Commit

Permalink
Merge pull request #31 from aservo/feature/improve-workflow
Browse files Browse the repository at this point in the history
Unify workflows for main push and pull requests
  • Loading branch information
pathob authored Oct 24, 2023
2 parents 6830fad + 4eab086 commit d525f6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 117 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci_main.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: CI Main
name: CI

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'

jobs:
package:
Expand Down Expand Up @@ -87,6 +90,8 @@ jobs:
deploy:
needs: [unit-tests, integration-tests]

if: github.event_name == 'push' # to 'main'

runs-on: ubuntu-20.04

env:
Expand Down Expand Up @@ -124,7 +129,7 @@ jobs:
run: export GPG_TTY=$(tty) && ./mvnw -s .github/workflows/settings.xml -DskipTests deploy -B

apcc:
needs: deploy
needs: package

runs-on: ubuntu-20.04

Expand Down
115 changes: 0 additions & 115 deletions .github/workflows/ci_pull_request.yaml

This file was deleted.

0 comments on commit d525f6b

Please sign in to comment.