From c54435fcbd9e36e4775f6a99604d849abc2ad373 Mon Sep 17 00:00:00 2001 From: alexandermentormate Date: Wed, 10 Apr 2024 18:01:00 +0300 Subject: [PATCH] Revert "ci: Separate the release and publish jobs" This reverts commit 893c27d30fb156ff6747d97109ac958d9d7fb569. --- .github/workflows/release.yaml | 39 ++++++---------------------------- 1 file changed, 7 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index cefaa4c..20404c5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,31 +8,11 @@ on: - completed jobs: + release: runs-on: ubuntu-latest - permissions: - id-token: write - contents: write - - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 + concurrency: release - - name: Check for new Relase and ...release - uses: python-semantic-release/python-semantic-release@master - with: - github_token: ${{ secrets.ACCESS_TOKEN }} - - - name: Store the distribution packages - uses: actions/upload-artifact@v3 - if: ${{ hashFiles('dist/') != '' }} - with: - name: python-package-distributions - path: dist/ - - publish: - runs-on: ubuntu-latest permissions: id-token: write contents: write @@ -42,19 +22,14 @@ jobs: url: https://test.pypi.org/p/python-project-cli steps: - - name: Check if dist exists - uses: xSAVIKx/artifact-exists-action@v0 - id: check_python_package + - uses: actions/checkout@v3 with: - name: python-package-distributions - path: dist/ + fetch-depth: 0 - - name: Download all the dists - if: steps.check_python_package.outputs.files_exists == 'true' - uses: actions/download-artifact@v3 + - name: Check for new Relase and ...release + uses: python-semantic-release/python-semantic-release@master with: - name: python-package-distributions - path: dist/ + github_token: ${{ secrets.ACCESS_TOKEN }} - name: Publish package to TestPyPI if new release available uses: pypa/gh-action-pypi-publish@release/v1