|
4 | 4 | push: |
5 | 5 | # Sequence of patterns matched against refs/tags |
6 | 6 | tags: |
7 | | - - v[0-9]+.[0-9]+.* # add .* to allow dev releases |
| 7 | + - v[0-9]+.[0-9]+.* # add .* to allow dev releases |
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | deploy: |
11 | 11 | name: pipenv PyPI Upload |
12 | 12 | runs-on: ubuntu-latest |
13 | 13 | env: |
14 | 14 | CI: "1" |
15 | | - |
| 15 | + |
16 | 16 | steps: |
17 | | - - name: Checkout code |
18 | | - uses: actions/checkout@v2 |
19 | | - |
20 | | - - name: Create Release |
21 | | - id: create_release |
22 | | - uses: actions/create-release@v1 |
23 | | - env: |
24 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
25 | | - with: |
26 | | - tag_name: ${{ github.ref }} |
27 | | - release_name: Release ${{ github.ref }} |
28 | | - draft: false |
29 | | - prerelease: false |
30 | | - |
31 | | - - name: Set up Python 3.9 |
32 | | - uses: actions/setup-python@v2 |
33 | | - with: |
34 | | - python-version: 3.9 |
35 | | - |
36 | | - - name: Install dependencies |
37 | | - run: | |
38 | | - python -m pip install --upgrade --upgrade-strategy=eager pip pipenv setuptools wheel twine |
39 | | - python -m pip install . |
40 | | - python -m pipenv install --dev |
41 | | - env: |
42 | | - PIPENV_DEFAULT_PYTHON_VERSION: "3.9" |
43 | | - |
44 | | - - name: Build wheels |
45 | | - run: | |
46 | | - python -m pipenv run python setup.py sdist bdist_wheel |
47 | | - # to upload to test pypi, pass repository_url: https://test.pypi.org/legacy/ and use secrets.TEST_PYPI_TOKEN |
48 | | - - name: Publish a Python distribution to PyPI |
49 | | - uses: pypa/gh-action-pypi-publish@release/v1 |
50 | | - with: |
51 | | - user: __token__ |
52 | | - password: ${{ secrets.PYPI_TOKEN }} |
53 | | - packages_dir: dist/ |
54 | | - |
55 | | - - name: Push changes |
56 | | - uses: ad-m/github-push-action@master |
57 | | - with: |
58 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
| 17 | + - name: Checkout code |
| 18 | + uses: actions/checkout@v2 |
| 19 | + |
| 20 | + - name: Create Release |
| 21 | + id: create_release |
| 22 | + uses: actions/create-release@v1 |
| 23 | + env: |
| 24 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 25 | + with: |
| 26 | + tag_name: ${{ github.ref }} |
| 27 | + release_name: Release ${{ github.ref }} |
| 28 | + draft: false |
| 29 | + prerelease: false |
| 30 | + |
| 31 | + - name: Set up Python 3.9 |
| 32 | + uses: actions/setup-python@v5 |
| 33 | + with: |
| 34 | + python-version: 3.9 |
| 35 | + |
| 36 | + - name: Install dependencies |
| 37 | + run: | |
| 38 | + python -m pip install --upgrade --upgrade-strategy=eager pip pipenv |
| 39 | + python -m pip install . |
| 40 | + python -m pipenv install --dev |
| 41 | + env: |
| 42 | + PIPENV_DEFAULT_PYTHON_VERSION: "3.9" |
| 43 | + |
| 44 | + - name: Build wheels |
| 45 | + run: | |
| 46 | + python -m pipenv run python setup.py sdist bdist_wheel |
| 47 | + # to upload to test pypi, pass repository_url: https://test.pypi.org/legacy/ and use secrets.TEST_PYPI_TOKEN |
| 48 | + - name: Publish a Python distribution to PyPI |
| 49 | + uses: pypa/gh-action-pypi-publish@release/v1 |
| 50 | + with: |
| 51 | + user: __token__ |
| 52 | + password: ${{ secrets.PYPI_TOKEN }} |
| 53 | + packages_dir: dist/ |
| 54 | + |
| 55 | + - name: Push changes |
| 56 | + uses: ad-m/github-push-action@master |
| 57 | + with: |
| 58 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments