Skip to content

Commit 4079ad9

Browse files
committed
GitHub maven publish workflow
1 parent 771c7b6 commit 4079ad9

File tree

4 files changed

+167
-5
lines changed

4 files changed

+167
-5
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# CI deploy maven package
2+
#
3+
# version 1.0.0
4+
#
5+
# see : https://universe.fugerit.org/src/docs/conventions/workflows/deploy_maven_package.html
6+
7+
name: CI deploy maven package
8+
9+
on:
10+
push:
11+
branches:
12+
- branch-deploy
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@main
21+
- name: Set up JDK 17
22+
uses: actions/setup-java@main
23+
with:
24+
java-version: '17'
25+
distribution: 'corretto'
26+
cache: maven
27+
server-id: ${{ vars.MAVEN_SERVERID }}
28+
server-username: MAVEN_USERNAME
29+
server-password: MAVEN_PASSWORD
30+
- name: Import gpg
31+
run: echo -e "${{ secrets.PASSPHRASE }}" | echo -e "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --allow-secret-key-import --import
32+
- name: Build package
33+
run: mvn clean install -P full,coverage,metadata
34+
- name: Publish package
35+
run: mvn --batch-mode deploy -P doRelease
36+
env:
37+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
38+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

.gitignore

Lines changed: 108 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,108 @@
1-
/target/
2-
/.classpath
3-
/.project
4-
/.settings/
1+
### Idea Intellij ###
2+
.idea/
3+
*.iml
4+
5+
### Eclipse ###
6+
7+
.DS_Store
8+
9+
.metadata
10+
bin/
11+
tmp/
12+
*.tmp
13+
*.bak
14+
*.swp
15+
*~.nib
16+
local.properties
17+
.settings/
18+
.loadpath
19+
.recommenders
20+
21+
.vscode/
22+
23+
# Eclipse Core
24+
.project
25+
26+
# External tool builders
27+
.externalToolBuilders/
28+
29+
# Locally stored "Eclipse launch configurations"
30+
*.launch
31+
32+
# PyDev specific (Python IDE for Eclipse)
33+
*.pydevproject
34+
35+
# CDT-specific (C/C++ Development Tooling)
36+
.cproject
37+
38+
# JDT-specific (Eclipse Java Development Tools)
39+
.classpath
40+
41+
# Java annotation processor (APT)
42+
.factorypath
43+
44+
# PDT-specific (PHP Development Tools)
45+
.buildpath
46+
47+
# sbteclipse plugin
48+
.target
49+
50+
# Tern plugin
51+
.tern-project
52+
53+
# TeXlipse plugin
54+
.texlipse
55+
56+
# STS (Spring Tool Suite)
57+
.springBeans
58+
59+
# Code Recommenders
60+
.recommenders/
61+
62+
# Scala IDE specific (Scala & Java development for Eclipse)
63+
.cache-main
64+
.scala_dependencies
65+
.worksheet
66+
67+
### Java ###
68+
# Compiled class file
69+
*.class
70+
71+
# Log file
72+
*.log
73+
74+
# BlueJ files
75+
*.ctxt
76+
77+
# Mobile Tools for Java (J2ME)
78+
.mtj.tmp/
79+
80+
# Package Files #
81+
*.jar
82+
*.war
83+
*.ear
84+
*.zip
85+
*.tar.gz
86+
*.rar
87+
88+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
89+
hs_err_pid*
90+
91+
### Maven ###
92+
target/
93+
pom.xml.tag
94+
pom.xml.releaseBackup
95+
pom.xml.versionsBackup
96+
pom.xml.next
97+
release.properties
98+
dependency-reduced-pom.xml
99+
buildNumber.properties
100+
.mvn/timing.properties
101+
102+
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
103+
!/.mvn/wrapper/maven-wrapper.jar
104+
105+
# End of https://www.gitignore.io/api/java,maven,eclipse
106+
107+
/.apt_generated/
108+
/.apt_generated_tests/

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [1.2.0] - 2025-07-25
11+
12+
### Added
13+
14+
- GitHub maven publish workflow
15+
16+
### Changed
17+
18+
- query-export-tool version 1.2.0
19+
20+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>org.fugerit.java</groupId>
66
<artifactId>query-export-maven-plugin</artifactId>
77

8-
<version>0.3.2</version>
8+
<version>1.2.0</version>
99
<packaging>maven-plugin</packaging>
1010

1111
<name>query-export-maven-plugin</name>

0 commit comments

Comments
 (0)