File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
build :
9
-
9
+ if : github.event_name == 'pull_request'
10
10
runs-on : ubuntu-latest
11
11
strategy :
12
12
matrix :
35
35
- name : Test with pytest
36
36
run : |
37
37
pytest -vv
38
+
39
+ pypi-publish :
40
+ needs : build
41
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
42
+ name : Upload release to PyPI
43
+ runs-on : ubuntu-latest
44
+ environment :
45
+ name : publish
46
+ url : https://pypi.org/p/pyfiglet
47
+ permissions :
48
+ id-token : write
49
+ steps :
50
+ - uses : actions/checkout@v3
51
+ - name : Set up Python ${{ matrix.python-version }}
52
+ uses : actions/setup-python@v4
53
+ with :
54
+ python-version : ${{ matrix.python-version }}
55
+ cache : pip
56
+ - name : Build full dist
57
+ run : |
58
+ python -m pip install --upgrade pip
59
+ make full
60
+ - name : Publish package distributions to PyPI
61
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments