Skip to content

Commit

Permalink
Merge pull request #55 from 201st-Luka/unstable
Browse files Browse the repository at this point in the history
fix: changed package version obtaining
  • Loading branch information
201st-Luka authored Sep 29, 2023
2 parents a9e866f + 7110e8f commit 7dc0d12
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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__)")
Expand All @@ -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/*

0 comments on commit 7dc0d12

Please sign in to comment.