Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rtmigo committed Oct 6, 2023
1 parent bd33e2d commit 1214f83
Showing 1 changed file with 22 additions and 37 deletions.
59 changes: 22 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
python ./do.py test-pkg
to-staging:
needs: [test, build-exe]
needs: [ test, build-exe ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand Down Expand Up @@ -131,50 +131,35 @@ jobs:
target_branch: master
github_token: ${{ github.token }}


to-pypi:
needs: [ to-master, pypi-flag ]
runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# # ADD PYPI RELEASE
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.x'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install setuptools wheel twine
# - name: Build and publish
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USR }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
# run: |
# python setup.py sdist bdist_wheel
# twine upload dist/*

# runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/img2texture

permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
id-token: write # trusted publishing

steps:
- uses: actions/checkout@v4

- name: Set up Python # do we really need this?
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies # do we really need this?
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- uses: actions/checkout@v4

- name: Set up Python # do we really need this?
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies # do we really need this?
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1


to-github-release:
needs: [ build-exe, to-staging, release-flag ]
Expand Down

0 comments on commit 1214f83

Please sign in to comment.