Skip to content

Merge pull request #28 from ShipEngine/jpill/increase-default-timeout… #69

Merge pull request #28 from ShipEngine/jpill/increase-default-timeout…

Merge pull request #28 from ShipEngine/jpill/increase-default-timeout… #69

Workflow file for this run

name: shipengine-java CD
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
package-name: shipengine
- uses: actions/[email protected]
- name: Setup Maven central
uses: actions/[email protected]
with:
java-version: "11"
architecture: x64
distribution: "adopt"
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
server-username: MAVEN_USERNAME # env variable for username in deploy
server-password: MAVEN_PASSWORD # env variable for token in deploy
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: Publish package to Maven Central
run: |
mvn --batch-mode deploy -Dmaven.test.skip=true
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}