Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5ce6d99
fix: publish package workflow for github action
florianepitech Apr 5, 2023
8bd81d8
fix: publish package workflow for github action
florianepitech Apr 5, 2023
179dc0f
fix: publish package for github action gpg key installation
florianepitech Apr 5, 2023
4cfb803
fix: publish package for github action gpg key installation
florianepitech Apr 5, 2023
7109917
fix: publish package for github action gpg key installation
florianepitech Apr 5, 2023
b3bb0e8
Update publish-package.yml
florianepitech Apr 5, 2023
155646d
Update publish-package.yml
florianepitech Apr 5, 2023
70f81e6
add: keystore registration in publish package workflow
florianepitech Apr 5, 2023
155f3c7
fix: publish github package
florianepitech Apr 5, 2023
9735899
fix: github package deployment
florianepitech Apr 5, 2023
17d7df6
fix: github package deployment
florianepitech Apr 5, 2023
347cdf2
fix: github package deployment
florianepitech Apr 5, 2023
0887dd9
fix: github package deployment
florianepitech Apr 5, 2023
cad1701
fix: github package deployment
florianepitech Apr 5, 2023
ee07a47
fix: github package deployment
florianepitech Apr 5, 2023
98273f4
fix: final fix of publish package workflow
florianepitech Apr 5, 2023
3c04b14
add: checkstyle in pom.xml
florianepitech Apr 5, 2023
24208d4
rm: checkstyle
florianepitech Apr 5, 2023
a643b4a
add: more command in Makefile
florianepitech Apr 5, 2023
bfd2de2
fix: readme with bad link on badge
florianepitech Apr 5, 2023
4d0100f
add: java doc in workflow
florianepitech Apr 6, 2023
44cbdee
fix: scm in pom.xml
florianepitech Apr 6, 2023
d8693ea
add: CreateZoneRequest return instance on all setter
florianepitech Apr 11, 2023
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: 3 additions & 1 deletion .github/workflows/java-compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ jobs:
java-version: '17'
distribution: 'temurin'
- name: Compilation with Maven
run: mvn compile
run: mvn compile
- name: JavaDoc
run: mvn javadoc:javadoc
43 changes: 30 additions & 13 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,24 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
##########################################
# 1 - PUSH TO MAVEN CENTRAL
##########################################
# STEP 1: Install GPG key
- name: Install GPG key
run: |
echo "Installing GNUPG..."
sudo apt-get install gnupg
echo "Importing GPG key..."
echo -n "${{ secrets.OSSRH_GPG_PRIVATE_KEY }}" | base64 -d | gpg --batch --import
echo "GPG key imported."
# STEP 2: Register key to Ubuntu Keyserver
- name: Register key to Ubuntu Keyserver
run: gpg --keyserver keyserver.ubuntu.com --send-keys ${{ secrets.OSSRH_GPG_KEY_ID }}
# STEP 3: Pull the code from the repository
- name: Pull the code from the repository
uses: actions/checkout@v3
# STEP 4: Set up Java for publishing to Maven Central Repository
- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v3
with:
Expand All @@ -21,24 +38,24 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Install GPG key
run: cat ${{ secrets.OSSRH_GPG_SECRET_KEY }} | base64 -d | gpg --batch --import
# STEP 5: Publish to the Maven Central Repository
- name: Publish to the Maven Central Repository
run: mvn --batch-mode \
clean deploy \
-Dmaven.test.skip=true \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_PASSPHRASE }}
run: mvn --batch-mode deploy -Dmaven.test.skip=true -Dgpg.passphrase=${{ secrets.OSSRH_GPG_PASSPHRASE }}
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
- name: Set up Java for publishing to GitHub Packages
##########################################
# 2 - PUSH TO GITHUB PACKAGE
##########################################
# STEP 1: Set up Java for publishing to Maven Central Repository
- name: Set up Java for publishing to GitHub Package
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
distribution: 'adopt'
server-id: github
# STEP 2: Publish to GitHub Packages
- name: Publish to GitHub Packages
run: mvn --batch-mode \
clean deploy \
-Dmaven.test.skip=true
run: mvn --batch-mode deploy -Dmaven.test.skip=true -P "github"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:
- name: Pull the code from the repository
uses: actions/checkout@v3
# Set up JDK 17 for the build (maven included).
- name: Set up JDK 17
- name: Set up Java for publishing to GitHub Package
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
distribution: 'adopt'
server-id: github
# Build the project with Maven.
- name: Compilation with Maven
run: mvn compile
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ logs
/secret.txt
decode.sh
base64privKey.txt
privKey.pem
pubKey
private.pgp
privKey.pem
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Features:
- Add zone management to the API.
- Add the request to get account balance to the account api.
Fix:
- Set CreateZoneRequest to return the instance of the request on the setters.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Generic Makefile for Botlify
##

.PHONY: all test clean fclean re doc
.PHONY: all test clean fclean install finstall re doc

#=================================
# Commands
Expand All @@ -21,8 +21,14 @@ test:
clean:
mvn clean

fclean:
rm -rf target

install:
mvn install

finstall:
mvn install -Dmaven.test.skip=true

doc:
mvn javadoc:javadoc
mvn javadoc:javadoc
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Bright-data API

[![Latest release](https://img.shields.io/github/release/botlify-net/bright-data-api.svg)](https://github.com/botlify-io/bright-data-api/releases/latest)
[![Build Status](https://github.com/botlify-net/bright-data-api/workflows/Java%20CI/badge.svg?branch=master)](https://github.com/botlify-io/guava/bright-data-api/actions)
[![Latest release](https://img.shields.io/github/release/botlify-net/bright-data-api.svg)](https://github.com/botlify-net/bright-data-api/releases/latest)
[![Build Status](https://github.com/botlify-net/bright-data-api/workflows/Java%20CI/badge.svg?branch=master)](https://github.com/botlify-net/bright-data-api/actions)

This project is a Java client for the BrightData API, which allows you to access the
BrightData API from your Java application without having to deal with the HTTP requests.
Expand Down
Loading