Skip to content

Commit ff6ff75

Browse files
authored
Merge pull request #12 from BEAST2-Dev/main
correct release and CI
2 parents cb808bd + c60f791 commit ff6ff75

3 files changed

Lines changed: 37 additions & 15 deletions

File tree

‎.github/workflows/ci-publish.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@ name: CI & Publish
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66
tags: [ 'v*' ]
77
pull_request:
8-
branches: [ master ]
8+
branches: [ main ]
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313

1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717

1818
- name: Set up JDK 25 (Azul Zulu)
1919
if: "!startsWith(github.ref, 'refs/tags/v')"
20-
uses: actions/setup-java@v4
20+
uses: actions/setup-java@v5
2121
with:
2222
distribution: zulu
2323
java-version: '25'
2424
cache: maven
2525

2626
- name: Set up JDK 25 (Azul Zulu) for Maven Central
2727
if: startsWith(github.ref, 'refs/tags/v')
28-
uses: actions/setup-java@v4
28+
uses: actions/setup-java@v5
2929
with:
3030
distribution: zulu
3131
java-version: '25'
@@ -44,11 +44,12 @@ jobs:
4444
mvn versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false
4545
4646
- name: Build and test
47+
if: "!startsWith(github.ref, 'refs/tags/v')"
4748
run: mvn verify
4849

4950
- name: Publish to Maven Central
5051
if: startsWith(github.ref, 'refs/tags/v')
51-
run: mvn deploy -Prelease -DskipTests
52+
run: mvn -Prelease clean deploy
5253
env:
5354
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
5455
CENTRAL_TOKEN: ${{ secrets.CENTRAL_TOKEN }}

‎pom.xml‎

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>io.github.compevol</groupId>
7+
<groupId>io.github.beast2-dev</groupId>
88
<artifactId>mutable-alignment</artifactId>
99
<version>0.1.0-SNAPSHOT</version>
1010

1111
<name>Mutable Alignment</name>
1212
<description>Mutable alignment support for BEAST</description>
1313

14-
<url>https://github.com/rbouckaert/MutableAlignment</url>
14+
<url>https://github.com/BEAST2-Dev/MutableAlignment</url>
1515

1616
<licenses>
1717
<license>
@@ -28,21 +28,20 @@
2828
</developers>
2929

3030
<scm>
31-
<connection>scm:git:git://github.com/rbouckaert/MutableAlignment.git</connection>
32-
<developerConnection>scm:git:ssh://github.com:rbouckaert/MutableAlignment.git</developerConnection>
33-
<url>https://github.com/rbouckaert/MutableAlignment</url>
31+
<connection>scm:git:git://github.com/BEAST2-Dev/MutableAlignment.git</connection>
32+
<developerConnection>scm:git:ssh://github.com:BEAST2-Dev/MutableAlignment.git</developerConnection>
33+
<url>https://github.com/BEAST2-Dev/MutableAlignment</url>
3434
</scm>
3535

3636
<properties>
3737
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3838
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3939
<maven.compiler.release>25</maven.compiler.release>
40-
<beast.version>2.8.0-beta2</beast.version>
40+
<beast.version>2.8.0-beta7</beast.version>
4141
<beast.module>beast.base</beast.module>
4242
<beast.main>beast.base.minimal.BeastMain</beast.main>
4343
<beast.args/>
4444
<beast.pkg.name>MutableAlignment</beast.pkg.name>
45-
<beast.pkg.version>0.1.0</beast.pkg.version>
4645
</properties>
4746

4847
<dependencies>
@@ -75,6 +74,28 @@
7574

7675
<build>
7776
<plugins>
77+
<!-- Derive beast.pkg.version from project.version (strip -SNAPSHOT) so the
78+
version is declared once, in <version> above -->
79+
<plugin>
80+
<groupId>org.codehaus.mojo</groupId>
81+
<artifactId>build-helper-maven-plugin</artifactId>
82+
<version>3.6.0</version>
83+
<executions>
84+
<execution>
85+
<id>set-beast-pkg-version</id>
86+
<phase>validate</phase>
87+
<goals><goal>regex-property</goal></goals>
88+
<configuration>
89+
<name>beast.pkg.version</name>
90+
<value>${project.version}</value>
91+
<regex>-SNAPSHOT$</regex>
92+
<replacement></replacement>
93+
<failIfNoMatch>false</failIfNoMatch>
94+
</configuration>
95+
</execution>
96+
</executions>
97+
</plugin>
98+
7899
<!-- Compiler -->
79100
<plugin>
80101
<groupId>org.apache.maven.plugins</groupId>
@@ -228,7 +249,7 @@
228249
<plugin>
229250
<groupId>org.sonatype.central</groupId>
230251
<artifactId>central-publishing-maven-plugin</artifactId>
231-
<version>0.6.0</version>
252+
<version>0.11.0</version>
232253
<extensions>true</extensions>
233254
<configuration>
234255
<publishingServerId>central</publishingServerId>

‎src/assembly/beast-package.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<useProjectArtifact>true</useProjectArtifact>
2929
<scope>runtime</scope>
3030
<includes>
31-
<include>io.github.compevol:mutable-alignment</include>
31+
<include>io.github.beast2-dev:mutable-alignment</include>
3232
</includes>
3333
</dependencySet>
3434
</dependencySets>

0 commit comments

Comments
 (0)