Skip to content

Commit d9fdcfc

Browse files
committed
no pypi
1 parent 7c6eb35 commit d9fdcfc

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ jobs:
6262
# - name: Build docs
6363
# working-directory: docs
6464
# run: sphinx-build -E -W -b html . _build/html
65-
- name: Check For pyproject.toml
66-
id: need-pypi
67-
run: |
68-
echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' )
69-
- name: Build Python package
70-
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
71-
run: |
72-
pip install --upgrade build twine
73-
for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
74-
sed -i -e "s/0.0.0+auto.0/1.2.3/" $file;
75-
done;
76-
python -m build
77-
twine check dist/*
65+
# - name: Check For pyproject.toml
66+
# id: need-pypi
67+
# run: |
68+
# echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' )
69+
# - name: Build Python package
70+
# if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
71+
# run: |
72+
# pip install --upgrade build twine
73+
# for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
74+
# sed -i -e "s/0.0.0+auto.0/1.2.3/" $file;
75+
# done;
76+
# python -m build
77+
# twine check dist/*

.github/workflows/release.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -57,32 +57,32 @@ jobs:
5757
pattern: "bundles/*"
5858
github-token: ${{ secrets.GITHUB_TOKEN }}
5959

60-
upload-pypi:
61-
runs-on: ubuntu-latest
62-
steps:
63-
- uses: actions/checkout@v1
64-
- name: Check For pyproject.toml
65-
id: need-pypi
66-
run: |
67-
echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' )
68-
- name: Set up Python
69-
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
70-
uses: actions/setup-python@v2
71-
with:
72-
python-version: '3.x'
73-
- name: Install dependencies
74-
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
75-
run: |
76-
python -m pip install --upgrade pip
77-
pip install --upgrade build twine
78-
- name: Build and publish
79-
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
80-
env:
81-
TWINE_USERNAME: ${{ secrets.pypi_username }}
82-
TWINE_PASSWORD: ${{ secrets.pypi_password }}
83-
run: |
84-
for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
85-
sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file;
86-
done;
87-
python -m build
88-
twine upload dist/*
60+
# upload-pypi:
61+
# runs-on: ubuntu-latest
62+
# steps:
63+
# - uses: actions/checkout@v1
64+
# - name: Check For pyproject.toml
65+
# id: need-pypi
66+
# run: |
67+
# echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' )
68+
# - name: Set up Python
69+
# if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
70+
# uses: actions/setup-python@v2
71+
# with:
72+
# python-version: '3.x'
73+
# - name: Install dependencies
74+
# if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
75+
# run: |
76+
# python -m pip install --upgrade pip
77+
# pip install --upgrade build twine
78+
# - name: Build and publish
79+
# if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
80+
# env:
81+
# TWINE_USERNAME: ${{ secrets.pypi_username }}
82+
# TWINE_PASSWORD: ${{ secrets.pypi_password }}
83+
# run: |
84+
# for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
85+
# sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file;
86+
# done;
87+
# python -m build
88+
# twine upload dist/*

0 commit comments

Comments
 (0)