-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contains breaking changes and fixes of TgBA
- Loading branch information
Showing
5 changed files
with
86 additions
and
25 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 @@ | ||
github: Cadiducho |
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 |
---|---|---|
@@ -1,20 +1,55 @@ | ||
name: Java CI | ||
|
||
on: [push] | ||
name: build | ||
on: ['push'] | ||
|
||
jobs: | ||
build: | ||
|
||
Test: | ||
name: "🔨 Test code" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ '1.8', '11.0.5' ] | ||
jdk: [ '8', '17' ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
architecture: x64 | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Setup Java ${{ matrix.jdk }} JDK | ||
uses: actions/setup-java@v3.2.0 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.jdk }} | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Validate Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Setup and Run Gradle | ||
run: ./gradlew test | ||
env: | ||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | ||
MAVEN_NAME: ${{ secrets.MAVEN_NAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
|
||
Publish: | ||
if: github.ref == 'refs/heads/master' | ||
needs: | ||
- Test | ||
name: "📄 Publish to maven repo" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Java JDK | ||
uses: actions/setup-java@v3.2.0 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Validate Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Setup and Run Gradle | ||
run: ./gradlew publishAllPublicationsToReleasesRepository | ||
env: | ||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | ||
MAVEN_NAME: ${{ secrets.MAVEN_NAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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