Skip to content

Commit

Permalink
Add missing file; Minor reformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkrodrigues committed Dec 5, 2023
1 parent 455792a commit f17c1ff
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-and-release-package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: "build-and-release-package"

on:
workflow_dispatch:
on: "workflow_dispatch"

concurrency: "${{github.workflow}}-${{github.ref}}"

Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "build-package"

on:
push:
branches: [ "main" ]
paths:
- ".github/workflows/build-package.yml"
- "pom.xml"
- "src/**"
workflow_dispatch:

concurrency:
group: "${{github.workflow}}-${{github.ref}}"
cancel-in-progress: true

jobs:
build-package:
runs-on: "ubuntu-latest"
permissions:
packages: "write"
steps:
- uses: "actions/checkout@v3"
with:
submodules: "recursive"

- uses: "actions/setup-java@v4"
with:
java-version: "11"
distribution: "adopt"
server-id: "github"

- name: "Build package and run tests"
run: "mvn --batch-mode test"

- if: "github.event_name != 'pull_request'"
name: "Deploy to GitHub"
env:
GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"
run: "mvn --batch-mode deploy -DskipTests -Pgithub_release"

0 comments on commit f17c1ff

Please sign in to comment.