Skip to content

Commit dc92553

Browse files
authored
Merge pull request #630 from exasol/develop
Changelog: #628: Added release GH actions (#629)
2 parents 2fbad74 + 043f601 commit dc92553

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release Droid - Upload GitHub Release Assets
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
upload_url:
7+
description: 'Upload URL'
8+
required: true
9+
10+
jobs:
11+
12+
build_and_upload:
13+
environment: AWS
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Init submodules
19+
run: git submodule update --init --recursive
20+
21+
- name: Setup Python 3.8 for integration-test-docker-environment
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: 3.8
25+
26+
- name: Install Poetry
27+
uses: abatilo/[email protected]
28+
with:
29+
poetry-version: 1.1.13
30+
31+
- name: Setup poetry env
32+
run: bash scripts/setup_poetry_env.sh "python3.8"
33+
34+
- name: Start release
35+
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"
36+
env: # Set the secret as an env variable
37+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
38+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
39+
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
40+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/test_release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Run a test for the AWS release build + asset upload
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_title:
7+
description: 'The release title for the new release draft!'
8+
required: true
9+
10+
jobs:
11+
12+
build_and_upload:
13+
environment: AWS
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Init submodules
19+
run: git submodule update --init --recursive
20+
21+
- name: Setup Python 3.8 for integration-test-docker-environment
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: 3.8
25+
26+
- name: Install Poetry
27+
uses: abatilo/[email protected]
28+
with:
29+
poetry-version: 1.1.13
30+
31+
- name: Setup poetry env
32+
run: bash scripts/setup_poetry_env.sh "python3.8"
33+
34+
- name: Start test release
35+
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 }}"
36+
env: # Set the secret as an env variable
37+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
38+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
39+
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
40+
GITHUB_TOKEN: ${{ github.token }}

doc/changes/changes-4.3.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This release uses version 0.9.0 of the container tool.
2323

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

2728
## Documentation
2829

0 commit comments

Comments
 (0)