diff --git a/.github/workflows/ci_jdk11_ubuntu.yml b/.github/workflows/ci_jdk11_ubuntu.yml
index 2b27b54..a91fc7e 100644
--- a/.github/workflows/ci_jdk11_ubuntu.yml
+++ b/.github/workflows/ci_jdk11_ubuntu.yml
@@ -9,8 +9,26 @@ on:
- master
jobs:
-
build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up JDK 11
+ uses: actions/setup-java@v3
+ with:
+ java-version: '11'
+ distribution: temurin
+ cache: maven
+ server-id: github-jackcess # value of repository/id field of the pom.xml
+ server-username: GH_PACKAGE_REPO_USERNAME # env variable name for username
+ server-password: GH_PACKAGE_REPO_PASSWORD # env variable name for GitHub Personal Access Token
+ - name: Build with Maven/JDK 11 on Ubuntu
+ run: mvn --batch-mode --file pom.xml --activate-profiles github-package-repo-jackcess clean package
+ env:
+ GH_PACKAGE_REPO_USERNAME: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
+ GH_PACKAGE_REPO_PASSWORD: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}}
+ deploy_deploy_sonatype:
+ needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -25,7 +43,7 @@ jobs:
server-username: SONATYPE_OSSRH_USERNAME
server-password: SONATYPE_OSSRH_PASSWORD
- name: Build with Maven/JDK 11 on Ubuntu
- run: mvn --batch-mode --file pom.xml clean deploy
+ run: mvn --batch-mode --file pom.xml --activate-profiles fast,github-package-repo-jackcess deploy
env:
- SONATYPE_OSSRH_USERNAME: ${{ secrets.SONATYPE_OSSRH_USERNAME }}
- SONATYPE_OSSRH_PASSWORD: ${{ secrets.SONATYPE_OSSRH_PASSWORD }}
+ SONATYPE_OSSRH_USERNAME: ${{ secrets.SONATYPE_OSSRH_USERNAME }}
+ SONATYPE_OSSRH_PASSWORD: ${{ secrets.SONATYPE_OSSRH_PASSWORD }}
diff --git a/pom.xml b/pom.xml
index ab02d8f..bc016d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -84,17 +84,6 @@
-
-
- github-jackcess
- ${developerId} github packages
- https://maven.pkg.github.com/${developerId}/${dep.jackcess.artifcactId}
-
- true
-
-
-
-
UTF-8
@@ -326,6 +315,20 @@
+
+ github-package-repo-jackcess
+
+
+ github-jackcess
+ ${developerId} github packages
+ https://maven.pkg.github.com/${developerId}/${dep.jackcess.artifcactId}
+
+ true
+
+
+
+
+
release