Skip to content

Commit 9766e8d

Browse files
committed
[ci] Moving Nightly release creation to bazel.yml
1 parent 7f046e8 commit 9766e8d

2 files changed

Lines changed: 23 additions & 16 deletions

File tree

.github/workflows/bazel.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ on:
4141
required: false
4242
type: string
4343
default: ''
44+
nightly-release-files:
45+
description: Files to upload to the Nightly release tah
46+
required: false
47+
type: string
48+
default: ''
4449

4550
jobs:
4651
bazel:
@@ -122,3 +127,12 @@ jobs:
122127
uses: mxschmitt/action-tmate@v3
123128
with:
124129
limit-access-to-actor: false
130+
- name: Release Nightly
131+
if: inputs.nightly-release-files != ''
132+
uses: marvinpinto/action-automatic-releases@latest
133+
with:
134+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
135+
automatic_release_tag: "nightly"
136+
title: "Nightly"
137+
prerelease: true
138+
files: ${{ inputs.nightly-release-files }}

.github/workflows/nightly.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,13 @@ jobs:
4646
run: ./go publish-maven-snapshot
4747

4848
grid:
49-
runs-on: ubuntu-latest
5049
if: inputs.language == 'java'
51-
steps:
52-
- name: Java Build
53-
uses: ./.github/workflows/bazel.yml
54-
with:
55-
name: Build Release
56-
cache-key: java-nightly
57-
run: ./go publish-maven-snapshot
58-
- name: Release Nightly Grid
59-
uses: marvinpinto/action-automatic-releases@latest
60-
with:
61-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
62-
automatic_release_tag: "nightly"
63-
title: "Nightly"
64-
prerelease: true
65-
files: build/dist/*.jar
50+
name: Grid
51+
uses: ./.github/workflows/bazel.yml
52+
with:
53+
name: Release
54+
cache-key: grid-nightly
55+
run: |
56+
echo build --stamp >>.bazelrc.local
57+
./go prep-release-zip
58+
nightly-release-files: build/dist/*.jar

0 commit comments

Comments
 (0)