Skip to content

Commit ad8921b

Browse files
authored
Adding Java to the nightly job
1 parent fc58eac commit ad8921b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,22 @@ on:
88
description: Nightly version number (e.g. 20221125)
99
required: true
1010
type: string
11+
language:
12+
description: Configured artefacts for the language will be built and pushed
13+
required: true
14+
type: choice
15+
default: "ruby"
16+
options:
17+
- java
18+
- ruby
19+
20+
env:
21+
SEL_M2_USER: ${{ secrets.SEL_M2_USER }}
22+
SEL_M2_PASS: ${{ secrets.SEL_M2_PASS }}
1123

1224
jobs:
1325
ruby:
26+
if: inputs.language == 'ruby'
1427
name: Ruby
1528
uses: ./.github/workflows/bazel.yml
1629
strategy:
@@ -26,3 +39,12 @@ jobs:
2639
export GEM_HOST_API_KEY="Bearer $GITHUB_TOKEN"
2740
bazel run //rb:${{ matrix.gem }}-bump-nightly-version ${{ inputs.version }}
2841
bazel run //rb:${{ matrix.gem }}-release-nightly
42+
43+
java:
44+
if: inputs.language == 'java'
45+
name: Java
46+
uses: ./.github/workflows/bazel.yml
47+
with:
48+
name: Release
49+
cache-key: java-nightly
50+
run: ./go publish-maven-snapshot

0 commit comments

Comments
 (0)