Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 66bd20f

Browse files
committed
publish action
1 parent d4ea42d commit 66bd20f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will publish a Java project with Maven
2+
# For more information see: https://docs.github.com/en/free-pro-team@latest/actions/guides/publishing-java-packages-with-maven
3+
4+
name: Java CI Publish with Maven
5+
6+
on:
7+
pull_request:
8+
types: [closed]
9+
branches: [develop]
10+
release:
11+
types: [published]
12+
13+
jobs:
14+
publish:
15+
16+
# Only run if releases are published or pull requests are merged,
17+
# omit running if pull requests are closed without merging
18+
if: github.event.pull_request.merged || github.event.action == 'published'
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up JDK 11
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: 11
28+
- name: Publish with Maven
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: mvn -B deploy --file pom.xml

0 commit comments

Comments
 (0)