From d9fdcfc0a3083e9ec59b5223e9bbd107316bde4a Mon Sep 17 00:00:00 2001 From: Neradoc Date: Sat, 25 Feb 2023 00:55:56 +0100 Subject: [PATCH] no pypi --- .github/workflows/build.yml | 26 ++++++++-------- .github/workflows/release.yml | 58 +++++++++++++++++------------------ 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b369b88..1c601b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,16 +62,16 @@ jobs: # - name: Build docs # working-directory: docs # run: sphinx-build -E -W -b html . _build/html - - name: Check For pyproject.toml - id: need-pypi - run: | - echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' ) - - name: Build Python package - if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') - run: | - pip install --upgrade build twine - for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do - sed -i -e "s/0.0.0+auto.0/1.2.3/" $file; - done; - python -m build - twine check dist/* +# - name: Check For pyproject.toml +# id: need-pypi +# run: | +# echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' ) +# - name: Build Python package +# if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') +# run: | +# pip install --upgrade build twine +# for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do +# sed -i -e "s/0.0.0+auto.0/1.2.3/" $file; +# done; +# python -m build +# twine check dist/* diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3a0325..bddeeaa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,32 +57,32 @@ jobs: pattern: "bundles/*" github-token: ${{ secrets.GITHUB_TOKEN }} - upload-pypi: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Check For pyproject.toml - id: need-pypi - run: | - echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' ) - - name: Set up Python - if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') - run: | - python -m pip install --upgrade pip - pip install --upgrade build twine - - name: Build and publish - if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') - env: - TWINE_USERNAME: ${{ secrets.pypi_username }} - TWINE_PASSWORD: ${{ secrets.pypi_password }} - run: | - for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do - sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file; - done; - python -m build - twine upload dist/* +# upload-pypi: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v1 +# - name: Check For pyproject.toml +# id: need-pypi +# run: | +# echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' ) +# - name: Set up Python +# if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') +# uses: actions/setup-python@v2 +# with: +# python-version: '3.x' +# - name: Install dependencies +# if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') +# run: | +# python -m pip install --upgrade pip +# pip install --upgrade build twine +# - name: Build and publish +# if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') +# env: +# TWINE_USERNAME: ${{ secrets.pypi_username }} +# TWINE_PASSWORD: ${{ secrets.pypi_password }} +# run: | +# for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do +# sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file; +# done; +# python -m build +# twine upload dist/*