From a2cf6bd7e8e30250e3e3b4e036d7a59233031a4c Mon Sep 17 00:00:00 2001 From: 201st-Luka Date: Fri, 29 Sep 2023 17:00:19 +0200 Subject: [PATCH] fix: changed package version obtaining in release.yml --- .github/workflows/release.yml | 49 ----------------------------------- 1 file changed, 49 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 561c99e..2ff16e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,34 +30,6 @@ jobs: with: files: dist/* token: ${{ secrets.GITHUB_TOKEN }} - - name: Upload dist for Next Jobs - uses: actions/upload-artifact@v2 - with: - name: dist - path: dist - - test-pypi: - name: Upload to test.pypi.org & test installation - runs-on: ubuntu-latest - needs: - - build - - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.x - - name: Install requirements - run: | - python -m pip install --upgrade pip - pip install twine - pip install -r requirements.txt - - name: Download dist from Previous Job - uses: actions/download-artifact@v2 - with: - name: dist - name: Extract package version run: | VERSION=$(python3 -c "import pyclasher; print(pyclasher.__version__)") @@ -67,26 +39,5 @@ jobs: run: python3 -m twine upload -u __token__ -p ${{ secrets.TEST_PYPI_TOKEN }} --repository testpypi dist/* - name: Test run: pip install -i -i https://test.pypi.org/simple/ pyclasher==$PACKAGE_VERSION - - pypi: - name: Upload to pypi.org - runs-on: ubuntu-latest - needs: - - build - - test-pypi - - steps: - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.x - - name: Install twine - run: | - python -m pip install --upgrade pip - pip install twine - - name: Download dist from Previous Job - uses: actions/download-artifact@v2 - with: - name: dist - name: Upload run: python3 -m twine upload -u __token__ -p ${{ secrets.PYPI_TOKEN }} --repository pypi dist/*