Skip to content

Commit

Permalink
ci: trigger release build
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Oct 8, 2024
1 parent fa6c705 commit f0def92
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
19 changes: 16 additions & 3 deletions .ci/maven-settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,27 @@
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
<servers>
<server>
<id>sonatype-ossrh</id>
<username>${env.SONATYPE_OSSRH_USER}</username>
<password>${env.SONATYPE_OSSRH_USER_TOKEN}</password>
<id>central.sonatype.com</id>
<username>${env.SONATYPE_CENTRAL_USER}</username>
<password>${env.SONATYPE_CENTRAL_TOKEN}</password>
<configuration>
<!-- https://maven.apache.org/guides/mini/guide-resolver-transport.html#timeouts -->
<connectTimeout>10000</connectTimeout>
<requestTimeout>30000</requestTimeout>
</configuration>
</server>
<server>
<id>github-commits</id>
<username>${env.GITHUB_USER}</username>
<password>${env.GITHUB_API_KEY}</password>
</server>
<server>
<id>central</id>
<configuration>
<!-- https://maven.apache.org/guides/mini/guide-resolver-transport.html#timeouts -->
<connectTimeout>10000</connectTimeout>
<requestTimeout>30000</requestTimeout>
</configuration>
</server>
</servers>
</settings>
4 changes: 2 additions & 2 deletions .ci/release-trigger.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# this file is evaluated by .ci/build.sh

POM_CURRENT_VERSION="1.0.6-SNAPSHOT" # perform release if pom.xml matches this version
POM_RELEASE_VERSION="1.1.0" # next release version
POM_CURRENT_VERSION="1.1.1-SNAPSHOT" # perform release if pom.xml matches this version
POM_RELEASE_VERSION="1.2.0" # next release version

DRY_RUN=false # is dry run?
SKIP_TESTS=true # skip tests during release build?
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ jobs:
MAY_CREATE_RELEASE: true
SIGN_KEY: ${{ secrets.GPG_SIGN_KEY }}
SIGN_KEY_PASS: ${{ secrets.GPG_SIGN_KEY_PWD }}
SONATYPE_OSSRH_USER: ${{ secrets.SONATYPE_OSSRH_USER }}
SONATYPE_OSSRH_USER_TOKEN: ${{ secrets.SONATYPE_OSSRH_USER_TOKEN }}
SONATYPE_CENTRAL_USER: ${{ vars.SONATYPE_CENTRAL_USER }}
SONATYPE_CENTRAL_TOKEN: ${{ secrets.SONATYPE_CENTRAL_TOKEN }}
run: |
set -eu
# https://github.community/t/github-actions-bot-email-address/17204
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
bash .ci/build.sh \
${{ github.event.inputs.additional_maven_args }} \
-DaltSnapshotDeploymentRepository=temp-snapshots-repo::file:///tmp/mvn-snapshots-repo
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ check for new dependency/plugin updates using:
<parent>
<groupId>com.vegardit.maven</groupId>
<artifactId>vegardit-maven-parent</artifactId>
<version>6.1.1</version>
<version>6.1.2</version>
</parent>

<groupId>com.vegardit.no-npe</groupId>
Expand Down

0 comments on commit f0def92

Please sign in to comment.