From 386f0e24b870eaa3f5e00752675c728272c963ea Mon Sep 17 00:00:00 2001 From: gentlegiantJGC Date: Tue, 22 Dec 2020 12:47:14 +0000 Subject: [PATCH] Fixed build workflow The src file was being created and uploaded for each windows version which caused an error --- .github/workflows/python-build.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 7b33e818..ac4fab71 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -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: @@ -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: