From 043f60169dfa4e43158758319cbc8aff3e8a8991 Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Wed, 8 Jun 2022 08:36:17 +0200 Subject: [PATCH] #628: Added release GH actions (#629) Fixes #628 --- ...ase_droid_upload_github_release_assets.yml | 40 +++++++++++++++++++ .github/workflows/test_release.yml | 40 +++++++++++++++++++ doc/changes/changes-4.3.0.md | 1 + 3 files changed, 81 insertions(+) create mode 100644 .github/workflows/release_droid_upload_github_release_assets.yml create mode 100644 .github/workflows/test_release.yml diff --git a/.github/workflows/release_droid_upload_github_release_assets.yml b/.github/workflows/release_droid_upload_github_release_assets.yml new file mode 100644 index 00000000..5b2e4ffa --- /dev/null +++ b/.github/workflows/release_droid_upload_github_release_assets.yml @@ -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/actions-poetry@v2.0.0 + 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 }} \ No newline at end of file diff --git a/.github/workflows/test_release.yml b/.github/workflows/test_release.yml new file mode 100644 index 00000000..dd58ba13 --- /dev/null +++ b/.github/workflows/test_release.yml @@ -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/actions-poetry@v2.0.0 + 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 }} \ No newline at end of file diff --git a/doc/changes/changes-4.3.0.md b/doc/changes/changes-4.3.0.md index 63efc281..1953889a 100644 --- a/doc/changes/changes-4.3.0.md +++ b/doc/changes/changes-4.3.0.md @@ -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