Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ on:
- release-*
tags:
- v*
paths-ignore:
- 'quarkus/**'

pull_request:
branches:
- master
- release-*
paths-ignore:
- 'quarkus/**'

jobs:
test:
Expand Down
82 changes: 82 additions & 0 deletions .github/workflows/quarkus-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Quarkus Agentic Build

on:
workflow_dispatch:
push:
branches:
- master
- release-quarkus-*
paths:
- 'quarkus/**'
tags:
- quarkus-v*

pull_request:
branches:
- master
- release-quarkus-*
paths:
- 'quarkus/**'

jobs:
build:
name: "Build & Test"
runs-on: ubuntu-latest
timeout-minutes: 30
env:
JDK_VER: 17
steps:
- uses: actions/checkout@v5
- name: Set up OpenJDK ${{ env.JDK_VER }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.JDK_VER }}
- name: Build quarkus modules
run: |
cd quarkus
../mvnw clean install -B -q -DskipITs=true
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v7
with:
name: quarkus-test-reports
path: quarkus/**/target/surefire-reports/

publish:
runs-on: ubuntu-latest
needs: [ build ]
timeout-minutes: 30
env:
JDK_VER: 17
OSSRH_USER_TOKEN: ${{ secrets.OSSRH_USER_TOKEN }}
OSSRH_PWD_TOKEN: ${{ secrets.OSSRH_PWD_TOKEN }}
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PWD: ${{ secrets.GPG_PWD }}
steps:
- uses: actions/checkout@v5
- name: Set up OpenJDK ${{ env.JDK_VER }}
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JDK_VER }}
- name: Get quarkus version
run: |
QUARKUS_VERSION=$(./mvnw -B -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec -f quarkus/pom.xml)
echo "QUARKUS_VERSION=$QUARKUS_VERSION" >> $GITHUB_ENV
- name: Is SNAPSHOT release ?
if: contains(github.ref, 'master') && contains(env.QUARKUS_VERSION, '-SNAPSHOT')
run: |
echo "DEPLOY_OSSRH=true" >> $GITHUB_ENV
- name: Is Release version ?
if: startsWith(github.ref, 'refs/tags/quarkus-v') && !contains(env.QUARKUS_VERSION, '-SNAPSHOT')
run: |
echo "DEPLOY_OSSRH=true" >> $GITHUB_ENV
- name: Publish to ossrh
if: env.DEPLOY_OSSRH == 'true'
run: |
echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d > private-key.gpg
export GPG_TTY=$(tty)
gpg --batch --import private-key.gpg
cd quarkus
../mvnw -V -B -Dgpg.skip=false -DskipTests -s ../settings.xml deploy
55 changes: 55 additions & 0 deletions .github/workflows/quarkus-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Quarkus Agentic Release

on:
workflow_dispatch:
inputs:
rel_version:
description: 'Release version (examples: 0.1.0, 0.2.0-rc-1, 0.2.0-SNAPSHOT)'
required: true
type: string

jobs:
create-release:
name: Creates quarkus release tag
runs-on: ubuntu-latest
env:
JDK_VER: '17'
steps:
- name: Check out code
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.DAPR_BOT_TOKEN }}
persist-credentials: false
- name: Set up OpenJDK ${{ env.JDK_VER }}
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JDK_VER }}
- name: Update quarkus version and tag
env:
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
run: |
set -ue
REL_VERSION="${{ inputs.rel_version }}"

git config user.email "daprweb@microsoft.com"
git config user.name "Dapr Bot"
git remote set-url origin https://x-access-token:${{ secrets.DAPR_BOT_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git

# Update version in all quarkus pom.xml files
cd quarkus
../mvnw versions:set -DnewVersion=$REL_VERSION -DprocessDependencies=true
cd ..

if [[ "$REL_VERSION" == *-SNAPSHOT ]]; then
git commit -s -m "Update quarkus version to ${REL_VERSION}" -a
git push origin master
echo "Updated master with quarkus version ${REL_VERSION}."
else
git commit -s -m "Release quarkus-v${REL_VERSION}" -a
git tag "quarkus-v${REL_VERSION}"
git push origin master
git push origin "quarkus-v${REL_VERSION}"
echo "Tagged and pushed quarkus-v${REL_VERSION}."
fi
4 changes: 4 additions & 0 deletions .github/workflows/validate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ on:
- release-*
tags:
- v*
paths-ignore:
- 'quarkus/**'

pull_request:
branches:
- master
- release-*
paths-ignore:
- 'quarkus/**'

jobs:
build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ on:
- release-*
tags:
- v*
paths-ignore:
- 'quarkus/**'

pull_request:
branches:
- master
- release-*
paths-ignore:
- 'quarkus/**'
jobs:
validate:
runs-on: ubuntu-latest
Expand Down
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<grpc.version>1.79.0</grpc.version>
<protobuf.version>3.25.5</protobuf.version>
<dapr.proto.baseurl>https://raw.githubusercontent.com/dapr/dapr/v1.17.0/dapr/proto</dapr.proto.baseurl>
<durabletask.proto.url>https://raw.githubusercontent.com/dapr/durabletask-protobuf/main/protos/orchestrator_service.proto</durabletask.proto.url>
<durabletask.proto.url>https://raw.githubusercontent.com/dapr/durabletask-protobuf/5bbe020faa18c66ff1cd1e21d5fa58a32f4f735b/protos/orchestrator_service.proto</durabletask.proto.url>
<dapr.sdk.version>1.18.0-SNAPSHOT</dapr.sdk.version>
<os-maven-plugin.version>1.7.1</os-maven-plugin.version>
<maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version>
Expand All @@ -38,9 +38,9 @@
<maven-site-plugin.version>3.12.1</maven-site-plugin.version>
<maven-project-info-reports-plugin.version>3.7.0</maven-project-info-reports-plugin.version>
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
<maven.deploy.skip>true</maven.deploy.skip>
<jackson.version>2.16.2</jackson.version>
<gpg.skip>true</gpg.skip>
Expand Down Expand Up @@ -715,6 +715,7 @@
<!-- We are following test containers artifact convention on purpose, don't rename -->
<module>testcontainers-dapr</module>
<module>durabletask-client</module>
<module>quarkus</module>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new module should be independent from dapr-sdk and have its own release process

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can send this code to quarkus-Dapr. @yaron2 which comments, can you be more specific?

</modules>

<profiles>
Expand Down
Loading