Skip to content

Commit

Permalink
Fixed build workflow
Browse files Browse the repository at this point in the history
The src file was being created and uploaded for each windows version which caused an error
  • Loading branch information
gentlegiantJGC authored Dec 22, 2020
1 parent a38ebb5 commit 386f0e2
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ on:
types: [published]

jobs:
deploy-src:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -r requirements.txt
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.AMULET_NBT_PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
deploy-windows:
runs-on: windows-latest
strategy:
Expand All @@ -30,7 +55,7 @@ jobs:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.AMULET_NBT_PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python setup.py bdist_wheel
twine upload dist/*
deploy-mac:
Expand Down

0 comments on commit 386f0e2

Please sign in to comment.