Skip to content

Commit 6c3079d

Browse files
committed
update ci files
1 parent b5c3d99 commit 6c3079d

File tree

3 files changed

+58
-59
lines changed

3 files changed

+58
-59
lines changed

.github/workflows/deploy.yaml

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,49 @@ name: Deploy
1818

1919
on:
2020
push:
21-
branches: [ master , development ]
21+
branches: [ ui-v1-main , ui-v1-development ]
2222

2323
jobs:
2424
verify:
25-
runs-on: ubuntu-24.04
26-
strategy:
27-
matrix:
28-
java-version: [ 11 ]
25+
runs-on: ubuntu-latest
2926
steps:
3027
- name: Check out Git repository
31-
uses: actions/checkout@v3
32-
- name: Install Java and Maven
33-
uses: actions/setup-java@v3
28+
uses: actions/checkout@v4
29+
30+
- name: Set up Java
31+
uses: actions/setup-java@v4
3432
with:
35-
java-version: ${{ matrix.java-version }}
36-
distribution: 'temurin'
37-
- run: mvn verify -B -e
33+
java-version: 11
34+
distribution: temurin
35+
cache: maven
36+
37+
- name: Run Maven verify
38+
run: mvn verify -B -e
3839

3940
release:
4041
needs: verify
41-
runs-on: ubuntu-24.04
42+
runs-on: ubuntu-latest
4243
steps:
4344
- name: Check out Git repository
44-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4546

46-
- name: Install Java and Maven
47-
uses: actions/setup-java@v3
47+
- name: Set up Java for deployment
48+
uses: actions/setup-java@v4
4849
with:
4950
java-version: 11
50-
distribution: 'temurin'
51-
server-id: ossrh
52-
server-username: SONATYPE_USERNAME
53-
server-password: SONATYPE_PASSWORD
54-
- id: install-secret-key
55-
name: Install gpg secret key
51+
distribution: temurin
52+
cache: maven
53+
server-id: 'central'
54+
server-username: CENTRAL_USER
55+
server-password: CENTRAL_TOKEN
56+
- name: Import GPG key
5657
run: |
57-
cat <(echo -e "${{ secrets.gpg_private_key }}") | gpg --batch --import
58-
- name: publish to snapshot
58+
echo "${{ secrets.gpg_private_key }}" | gpg --batch --import
59+
env:
60+
GPG_TTY: $(tty)
61+
- name: Deploy with Maven
5962
run: mvn --no-transfer-progress clean deploy -B -e -Dci=true -Dgpg.passphrase=${{ secrets.gpg_passphrase }}
6063
env:
61-
SONATYPE_USERNAME: ${{ secrets.nexus_username }}
62-
SONATYPE_PASSWORD: ${{ secrets.nexus_password }}
64+
CENTRAL_USER: ${{ secrets.CENTRAL_USER }}
65+
CENTRAL_TOKEN: ${{ secrets.CENTRAL_TOKEN }}
66+

.github/workflows/verify.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@ on:
2222

2323
jobs:
2424
verify:
25-
runs-on: ubuntu-24.04
26-
strategy:
27-
matrix:
28-
java-version: [ 11 ]
29-
distribution: 'temurin'
25+
runs-on: ubuntu-latest
26+
3027
steps:
3128
- name: Check out Git repository
32-
uses: actions/checkout@v3
33-
- name: Install Java and Maven
34-
uses: actions/setup-java@v3
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Java and Maven
32+
uses: actions/setup-java@v4
3533
with:
36-
java-version: ${{ matrix.java-version }}
37-
- run: mvn verify -B -e
34+
java-version: 11
35+
distribution: temurin
36+
37+
- name: Run Maven verify
38+
run: mvn verify -B -e
39+

pom.xml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,11 @@
6262
<url>https://github.com/DominoKit/domino-mvp</url>
6363
</scm>
6464

65-
<distributionManagement>
66-
<snapshotRepository>
67-
<id>ossrh</id>
68-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
69-
</snapshotRepository>
70-
</distributionManagement>
71-
7265
<inceptionYear>2019</inceptionYear>
7366

7467
<properties>
75-
<snapshot.version>HEAD-SNAPSHOT</snapshot.version>
76-
<next.release.version>2.0.0-RC3</next.release.version>
68+
<snapshot.version>ui-v1-SNAPSHOT</snapshot.version>
69+
<next.release.version>2.0.0-ui-v1</next.release.version>
7770
<maven.compiler.source>11</maven.compiler.source>
7871
<maven.compiler.target>11</maven.compiler.target>
7972
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -638,9 +631,9 @@
638631

639632
<!-- Configure branches -->
640633
<gitFlowConfig>
641-
<productionBranch>master</productionBranch>
634+
<productionBranch>ui-v1-main</productionBranch>
642635
<!-- default is develop, but we use development -->
643-
<developmentBranch>development</developmentBranch>
636+
<developmentBranch>ui-v1-development</developmentBranch>
644637
</gitFlowConfig>
645638
</configuration>
646639
</plugin>
@@ -718,17 +711,6 @@
718711
</execution>
719712
</executions>
720713
</plugin>
721-
<plugin>
722-
<groupId>org.sonatype.plugins</groupId>
723-
<artifactId>nexus-staging-maven-plugin</artifactId>
724-
<version>${maven.nexus.staging.plugin}</version>
725-
<extensions>true</extensions>
726-
<configuration>
727-
<serverId>ossrh</serverId>
728-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
729-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
730-
</configuration>
731-
</plugin>
732714
<plugin>
733715
<groupId>org.apache.maven.plugins</groupId>
734716
<artifactId>maven-enforcer-plugin</artifactId>
@@ -747,6 +729,17 @@
747729
</execution>
748730
</executions>
749731
</plugin>
732+
<plugin>
733+
<groupId>org.sonatype.central</groupId>
734+
<artifactId>central-publishing-maven-plugin</artifactId>
735+
<version>0.8.0</version>
736+
<extensions>true</extensions>
737+
<configuration>
738+
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
739+
<publishingServerId>central</publishingServerId>
740+
<autoPublish>true</autoPublish>
741+
</configuration>
742+
</plugin>
750743
</plugins>
751744
</pluginManagement>
752745
</build>
@@ -821,8 +814,8 @@
821814
<artifactId>maven-gpg-plugin</artifactId>
822815
</plugin>
823816
<plugin>
824-
<groupId>org.sonatype.plugins</groupId>
825-
<artifactId>nexus-staging-maven-plugin</artifactId>
817+
<groupId>org.sonatype.central</groupId>
818+
<artifactId>central-publishing-maven-plugin</artifactId>
826819
</plugin>
827820
<plugin>
828821
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)