Nightly #1
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: 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 | |
- python | |
- grid | |
jobs: | |
ruby: | |
if: (github.repository_owner == 'seleniumhq') && (inputs.language == 'ruby' || github.event_name == 'schedule') | |
name: Ruby | |
uses: ./.github/workflows/bazel.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
gem: | |
- 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 | |
python: | |
if: (github.repository_owner == 'seleniumhq') && (inputs.language == 'python' || github.event_name == 'schedule') | |
name: Python | |
uses: ./.github/workflows/bazel.yml | |
with: | |
name: Release | |
cache-key: python-nightly | |
run: | | |
./go "py:version[nightly]" | |
./go py:build | |
pip install twine | |
twine upload --repository testpypi bazel-bin/py/selenium-4*.whl bazel-bin/py/selenium-4*.tar.gz | |
secrets: inherit | |
java: | |
if: (github.repository_owner == 'seleniumhq') && (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: (github.repository_owner == 'seleniumhq') && (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 java-release-zip | |
nightly-release-files: build/dist/*.* |