Skip to content

Commit a0d0b74

Browse files
committed
issue_25 actions update
1 parent 9197762 commit a0d0b74

File tree

1 file changed

+24
-29
lines changed

1 file changed

+24
-29
lines changed

.github/workflows/release.yaml

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,27 @@ jobs:
1717
run: sudo python2 get-pip.py
1818
- name: install requirements for python2
1919
run: pip2 install -r requirements-2.txt
20-
# - name: package and upload
21-
# env:
22-
# TWINE_USERNAME: __token__
23-
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
24-
# PYTHON_DATEMATH_VERSION: ${{ github.event.release.tag_name }}
25-
# run: |
26-
# python2.7 setup.py sdist bdist_wheel
27-
# twine upload dist/*
28-
29-
# - name: Publish our Python distribution to PyPI
30-
# uses: pypa/gh-action-pypi-publish@release/v1
31-
# with:
32-
# user: __token__
33-
# password: ${{ secrets.PYPI_API_TOKEN }}
34-
# build-python3:
35-
# runs-on: ubuntu-20.04
36-
# needs:
37-
# - build-python2
38-
# steps:
39-
# - uses: actions/checkout@v2
40-
# - name: install requirements for python3
41-
# run: pip3 install -r requirements-3.txt
42-
# - name: build the package
43-
# run: python3 setup.py sdist bdist_wheel
44-
# - name: Publish our Python distribution to PyPI
45-
# uses: pypa/gh-action-pypi-publish@release/v1
46-
# with:
47-
# user: __token__
48-
# password: ${{ secrets.PYPI_API_TOKEN }}
20+
- name: package and upload python2
21+
env:
22+
TWINE_USERNAME: __token__
23+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
24+
PYTHON_DATEMATH_VERSION: ${{ github.event.release.tag_name }}
25+
run: |
26+
python2.7 setup.py sdist bdist_wheel
27+
twine upload dist/*
28+
release-python3:
29+
runs-on: ubuntu-20.04
30+
needs:
31+
- release-python2
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: install requirements for python3
35+
run: pip3 install -r requirements-3.txt
36+
- name: package and upload python3
37+
env:
38+
TWINE_USERNAME: __token__
39+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
40+
PYTHON_DATEMATH_VERSION: ${{ github.event.release.tag_name }}
41+
run: |
42+
python3 setup.py sdist bdist_wheel
43+
twine upload dist/*

0 commit comments

Comments
 (0)