From 4006e4611f99179aa281997d0330f740d6682268 Mon Sep 17 00:00:00 2001 From: shaharbar1 <33932594+shaharbar1@users.noreply.github.com> Date: Wed, 21 Aug 2024 11:09:36 +0300 Subject: [PATCH] Fix GitHub Actions workflow for release and tagging (#44) Change log: 1. Added python setup action before the build and publish action on continuous_delivery.yml. 2. Updated the setup-python action version on CI and CD configs, to avoid deprecation warning. --- .github/workflows/continuous_delivery.yml | 7 ++++++- .github/workflows/continuous_integration.yml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous_delivery.yml b/.github/workflows/continuous_delivery.yml index e0392dd..8b1c148 100644 --- a/.github/workflows/continuous_delivery.yml +++ b/.github/workflows/continuous_delivery.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -64,6 +64,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Set up Python 3.8 # required for poetry + uses: actions/setup-python@v5 + with: + python-version: 3.8 + - name: Build and publish to pypi uses: JRubics/poetry-publish@v2.0 with: diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 9c16e03..e638d7c 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -27,7 +27,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Poetry