Skip to content

Commit

Permalink
Merge pull request #630 from exasol/develop
Browse files Browse the repository at this point in the history
Changelog:
#628: Added release GH actions (#629)
  • Loading branch information
tomuben authored Jun 8, 2022
2 parents 2fbad74 + 043f601 commit dc92553
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release_droid_upload_github_release_assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release Droid - Upload GitHub Release Assets

on:
workflow_dispatch:
inputs:
upload_url:
description: 'Upload URL'
required: true

jobs:

build_and_upload:
environment: AWS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Init submodules
run: git submodule update --init --recursive

- name: Setup Python 3.8 for integration-test-docker-environment
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.13

- name: Setup poetry env
run: bash scripts/setup_poetry_env.sh "python3.8"

- name: Start release
run: poetry run python -m exasol_script_languages_container_ci_setup.main start-release-build --log-level info --project "ScriptLanguagesRelease" --upload_url "${{ github.event.inputs.upload_url }}" --branch "$GITHUB_REF"
env: # Set the secret as an env variable
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
GITHUB_TOKEN: ${{ github.token }}
40 changes: 40 additions & 0 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Run a test for the AWS release build + asset upload

on:
workflow_dispatch:
inputs:
release_title:
description: 'The release title for the new release draft!'
required: true

jobs:

build_and_upload:
environment: AWS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Init submodules
run: git submodule update --init --recursive

- name: Setup Python 3.8 for integration-test-docker-environment
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.13

- name: Setup poetry env
run: bash scripts/setup_poetry_env.sh "python3.8"

- name: Start test release
run: poetry run python -m exasol_script_languages_container_ci_setup.main start-test-release-build --log-level info --project ScriptLanguagesRelease --repo-name "$GITHUB_REPOSITORY" --branch "$GITHUB_REF" --release-title "${{ github.event.inputs.release_title }}"
env: # Set the secret as an env variable
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
GITHUB_TOKEN: ${{ github.token }}
1 change: 1 addition & 0 deletions doc/changes/changes-4.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This release uses version 0.9.0 of the container tool.

- #433: Removed the source of the udflclient from the standard containers
- #147: Added tests for JVM owned native libs
- #628: Added release GH actions

## Documentation

Expand Down

0 comments on commit dc92553

Please sign in to comment.