Skip to content

Commit de14d57

Browse files
authored
Update CI.yml
1 parent 1a33143 commit de14d57

1 file changed

Lines changed: 25 additions & 27 deletions

File tree

.github/workflows/CI.yml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,32 @@ jobs:
2626
with:
2727
${{ matrix.tools }}: true
2828
args: ${{ matrix.args }}
29-
publish2:
30-
uses: ./.github/workflows/publish.yml
3129

32-
# publish:
33-
# runs-on: ubuntu-latest
34-
# steps:
35-
# - uses: actions/checkout@v2
30+
publish:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v2
3634

37-
# - if: ${{ github.event_name == 'release' }}
38-
# name: Publish Release to PyPi
39-
# uses: dciborow/pyaction@0.0.28
40-
# with:
41-
# pypi_publish: true
42-
# pypi_password: ${{ secrets.PYPI_PASSWORD }}
35+
- if: ${{ github.event_name == 'release' }}
36+
name: Publish Release to PyPi
37+
uses: dciborow/pyaction@0.0.28
38+
with:
39+
pypi_publish: true
40+
pypi_password: ${{ secrets.PYPI_PASSWORD }}
4341

44-
# - if: ${{ github.event_name == 'push' }}
45-
# name: Publish RC to PyPi
46-
# uses: dciborow/pyaction@0.0.28
47-
# with:
48-
# pypi_publish: true
49-
# pypi_password: ${{ secrets.PYPI_PASSWORD }}
50-
# version_suffix: -rc${{ github.run_number }}-post${{ github.run_attempt }}
42+
- if: ${{ github.event_name == 'push' }}
43+
name: Publish RC to PyPi
44+
uses: dciborow/pyaction@0.0.28
45+
with:
46+
pypi_publish: true
47+
pypi_password: ${{ secrets.PYPI_PASSWORD }}
48+
version_suffix: -rc${{ github.run_number }}-post${{ github.run_attempt }}
5149

52-
# - if: ${{ github.event_name == 'pull_request' }}
53-
# name: Publish Snapshot to TestPyPi
54-
# uses: dciborow/pyaction@0.0.28
55-
# with:
56-
# pypi_publish: true
57-
# pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
58-
# pypi_repo: testpypi
59-
# version_suffix: -post${{ github.run_number }}-dev${{ github.run_attempt }}
50+
- if: ${{ github.event_name == 'pull_request' }}
51+
name: Publish Snapshot to TestPyPi
52+
uses: dciborow/pyaction@0.0.28
53+
with:
54+
pypi_publish: true
55+
pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
56+
pypi_repo: testpypi
57+
version_suffix: -post${{ github.run_number }}-dev${{ github.run_attempt }}

0 commit comments

Comments
 (0)