-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build config: publish http client lib jars (#12510)
Updates github actions & gradle to publish JAR files of http client libraries. The servers will in turn have a maven dependency on these newly upload JAR files.
- Loading branch information
1 parent
2ccb520
commit 8868057
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Jar files uploaded are used as a maven dependency by server | ||
name: Create Http JAR files and upload to github packages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'http-clients/**' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
build: | ||
runs-on: Ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
# Fetch depth of 0 is needed so we checkout the full revision history | ||
# The current revision count will be used as our build-number | ||
fetch-depth: '0' | ||
- name: set build version variables | ||
run: | | ||
COMMIT_NUMBER=$(git rev-list --count HEAD) | ||
echo "commit_number=$COMMIT_NUMBER" | tee -a $GITHUB_ENV | ||
- name: Publish HTTP client JARs (used by servers) | ||
run: ./gradlew publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COMMIT_NUMBER: ${{ env.COMMIT_NUMBER }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters