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:
74
74
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
75
75
tmux -V
76
76
poetry run py.test --cov=./ --cov-report=xml
77
+
77
78
- uses : codecov/codecov-action@v2
78
79
with :
79
80
token : ${{ secrets.CODECOV_TOKEN }}
80
81
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')
84
86
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