File tree Expand file tree Collapse file tree 1 file changed +32
-10
lines changed Expand file tree Collapse file tree 1 file changed +32
-10
lines changed Original file line number Diff line number Diff line change @@ -74,18 +74,40 @@ jobs:
7474 ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
7575 tmux -V
7676 poetry run py.test --cov=./ --cov-report=xml
77+
7778 - uses : codecov/codecov-action@v2
7879 with :
7980 token : ${{ secrets.CODECOV_TOKEN }}
8081
81- - name : Build package
82- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
83- run : poetry build
82+ release :
83+ runs-on : ubuntu-latest
84+ needs : build
85+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
8486
85- - name : Publish package
86- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
87- uses : pypa/gh-action-pypi-publish@release/v1
88- with :
89- user : __token__
90- password : ${{ secrets.PYPI_API_TOKEN }}
91- skip_existing : true
87+ strategy :
88+ matrix :
89+ python-version : ["3.10"]
90+
91+ steps :
92+ - uses : actions/checkout@v3
93+
94+ - name : Install poetry
95+ run : pipx install "poetry==1.1.15"
96+
97+ - name : Set up Python ${{ matrix.python-version }}
98+ uses : actions/setup-python@v4
99+ with :
100+ python-version : ${{ matrix.python-version }}
101+ cache : ' poetry'
102+
103+ - name : Build package
104+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
105+ run : poetry build
106+
107+ - name : Publish package
108+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
109+ uses : pypa/gh-action-pypi-publish@release/v1
110+ with :
111+ user : __token__
112+ password : ${{ secrets.PYPI_API_TOKEN }}
113+ skip_existing : true
You can’t perform that action at this time.
0 commit comments