From 325147065db9cd42048cedb0e79b3b3e5f477af5 Mon Sep 17 00:00:00 2001 From: ckunki Date: Fri, 25 Oct 2024 16:46:57 +0200 Subject: [PATCH] Removed experimental parts from workflows --- .github/workflows/build-and-publish.yml | 24 ++++++---------------- .github/workflows/ci.yml | 4 ---- exasol_advanced_analytics_framework/slc.py | 4 ++-- 3 files changed, 8 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index ba975215..638ecd09 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -1,7 +1,6 @@ name: Build & Publish on: - workflow_dispatch: workflow_call: secrets: PYPI_TOKEN: @@ -33,23 +32,12 @@ jobs: gh release create ${GITHUB_REF_NAME} --draft --title ${GITHUB_REF_NAME} - --notes-file doc/changes/changes_0.1.0.md + --notes-file doc/changes/changes_${GITHUB_REF_NAME}.md dist/* .slc/* -# - name: GitHub Release -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# run: > -# gh release create ${GITHUB_REF_NAME} -# --draft -# --title ${GITHUB_REF_NAME} -# --notes-file doc/changes/changes_${GITHUB_REF_NAME}.md -# dist/* -# .slc/* - - # - name: PyPi Release - # env: - # POETRY_HTTP_BASIC_PYPI_USERNAME: "__token__" - # POETRY_HTTP_BASIC_PYPI_PASSWORD: "${{ secrets.PYPI_TOKEN }}" - # run: poetry publish + - name: PyPi Release + env: + POETRY_HTTP_BASIC_PYPI_USERNAME: "__token__" + POETRY_HTTP_BASIC_PYPI_PASSWORD: "${{ secrets.PYPI_TOKEN }}" + run: poetry publish diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abd3d3b0..a2125740 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,3 @@ jobs: - name: Branch Protection run: true - experimental: - uses: ./.github/workflows/build-and-publish.yml - secrets: inherit - diff --git a/exasol_advanced_analytics_framework/slc.py b/exasol_advanced_analytics_framework/slc.py index 594b4943..9e0947e5 100644 --- a/exasol_advanced_analytics_framework/slc.py +++ b/exasol_advanced_analytics_framework/slc.py @@ -6,8 +6,8 @@ LANGUAGE_ALIAS = "PYTHON3_AAF" SLC_NAME = "exasol_advanced_analytics_framework_container" -SLC_FILE_NAME = SLC_NAME + ".tar.gz" -SLC_URL_FORMATTER = "https://github.com/exasol/advanced_analytics_framework/releases/download/{version}/" + SLC_NAME +SLC_FILE_NAME = SLC_NAME + "_release.tar.gz" +SLC_URL_FORMATTER = "https://github.com/exasol/advanced_analytics_framework/releases/download/{version}/" + SLC_FILE_NAME @contextmanager