Skip to content

Merge pull request #51 from HHS/update-to-util4.1.2 #8

Merge pull request #51 from HHS/update-to-util4.1.2

Merge pull request #51 from HHS/update-to-util4.1.2 #8

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Taskit Release Build
on:
push:
paths-ignore:
- 'README.md'
- 'LICENSE'
branches: ["main"]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Taskit
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Build and Deploy Taskit
run: mvn clean deploy -Pjavadoc,sign --file pom.xml
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SECRET_KEY_PASSWORD }}
- name: Get Taskit Version
run: |
echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV"
- name: Make Taskit Release
uses: ncipollo/[email protected]
with:
artifacts: "core/target/core-${{ env.version }}*,protobuf/target/protobuf-${{ env.version }}*"
name: "v${{ env.version }}"
tag: "v${{ env.version }}"
generateReleaseNotes: true
skipIfReleaseExists: true