File tree Expand file tree Collapse file tree 2 files changed +24
-26
lines changed Expand file tree Collapse file tree 2 files changed +24
-26
lines changed Original file line number Diff line number Diff line change 7
7
timeout-minutes : 10
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - uses : actions/checkout@v3
10
+ - uses : actions/checkout@v4
11
11
- uses : psf/black@stable
Original file line number Diff line number Diff line change 1
- name : Build and upload Python Package to pypi.autoactuary.com
1
+ name : Build and publish release
2
2
3
- on :
4
- release :
5
- types : [created]
3
+ on : push
6
4
7
5
jobs :
8
- deploy :
9
- timeout-minutes : 20
10
-
6
+ pypi-publish :
7
+ name : Upload release to PyPI
8
+ if : startsWith(github.ref, 'refs/tags/')
11
9
runs-on : ubuntu-latest
12
-
10
+ environment :
11
+ name : pypi
12
+ url : https://pypi.org/p/mkdocstrings-vba
13
+ permissions :
14
+ id-token : write
13
15
steps :
14
- - uses : actions/checkout@v3
15
- - name : Set up Python
16
- uses : actions/setup-python@v4
17
- with :
18
- python-version : ' 3.x'
19
- - name : Install dependencies
20
- run : |
21
- python -m pip install --upgrade pip
22
- pip install setuptools wheel twine
23
- - name : Build and publish
24
- env :
25
- TWINE_USERNAME : ' aa'
26
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
27
- TWINE_REPOSITORY_URL : ' https://pypi.autoactuary.com'
28
- run : |
29
- python setup.py sdist bdist_wheel
30
- twine upload dist/*
16
+ - uses : actions/checkout@v4
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v5
19
+ with :
20
+ python-version : ' 3.x'
21
+ - name : Install dependencies
22
+ run : |
23
+ python -m pip install --upgrade pip
24
+ python -m pip install build
25
+ - name : Build distributions
26
+ run : python -m build
27
+ - name : Publish package distributions to PyPI
28
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments