Bump to Telegram Bot API 6.9 #24
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
name: build | |
on: ['push'] | |
jobs: | |
Test: | |
name: "🔨 Test code" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
jdk: [ '8', '17' ] | |
steps: | |
- 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 }} |