Fix github actions

This commit is contained in:
Andrea Cavalli 2023-01-03 00:40:21 +01:00
parent 7a17f8e46b
commit 65276aa845
2 changed files with 9 additions and 4 deletions

View File

@ -2,7 +2,9 @@ name: Docker multi-arch build
on:
push:
pull_request:
branches:
- master
- develop
jobs:
build:
@ -143,7 +145,7 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Setup Java (Release)
if: github.ref == 'refs/heads/master'
if: github.ref != 'refs/heads/develop'
uses: actions/setup-java@v3
with:
java-version: 11

View File

@ -2,6 +2,9 @@ name: Generate TdApi.java
on:
push:
branches:
- master
- develop
jobs:
build:
@ -28,7 +31,7 @@ jobs:
with:
submodules: "recursive"
- name: Setup Java (Snapshot)
if: github.ref != 'refs/heads/master'
if: github.ref == 'refs/heads/develop'
uses: actions/setup-java@v3
with:
java-version: 17
@ -37,7 +40,7 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Setup Java (Release)
if: github.ref == 'refs/heads/master'
if: github.ref != 'refs/heads/develop'
uses: actions/setup-java@v3
with:
java-version: 17