forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (59 loc) · 1.52 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Nightly
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
inputs:
version:
description: Nightly version number (e.g. 20221125)
required: false
type: string
default: ''
language:
description: Language artefacts
required: true
type: choice
default: "ruby"
options:
- java
- ruby
- grid
jobs:
ruby:
if: inputs.language == 'ruby' || github.event_name == 'schedule'
name: Ruby
uses: ./.github/workflows/bazel.yml
strategy:
fail-fast: false
matrix:
gem:
- selenium-devtools
- selenium-webdriver
with:
name: Release
cache-key: rb-nightly-${{ matrix.gem }}
run: |
export GEM_HOST_API_KEY="Bearer $GITHUB_TOKEN"
bazel run //rb:${{ matrix.gem }}-bump-nightly-version ${{ inputs.version }}
bazel run //rb:${{ matrix.gem }}-release-nightly
java:
if: inputs.language == 'java' || github.event_name == 'schedule'
name: Java
uses: ./.github/workflows/bazel.yml
with:
name: Release
cache-key: java-nightly
run: |
./go publish-maven-snapshot
secrets: inherit
grid:
if: inputs.language == 'grid' || github.event_name == 'schedule'
name: Grid
uses: ./.github/workflows/bazel.yml
with:
name: Release
cache-key: grid-nightly
run: |
echo build --stamp >>.bazelrc.local
./go prep-release-zip
nightly-release-files: build/dist/*.*