File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release webpreview
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ tests :
9+ strategy :
10+ matrix :
11+ python-version : ["3.7", "3.8", "3.9", "3.10"]
12+ os : [ubuntu-latest, windows-latest, macos-latest]
13+ runs-on : ${{ matrix.os }}
14+ steps :
15+ - uses : actions/checkout@v3
16+ - uses : actions/setup-python@v3
17+ with :
18+ python-version : ${{ matrix.python-version }}
19+ - uses : ./.github/actions/setup
20+ - name : Tests
21+ run : |
22+ # Run tests
23+ poetry run pytest
24+
25+ publish-npm :
26+ needs : tests
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : actions/checkout@v3
30+ - uses : actions/setup-python@v4
31+ with :
32+ python-version : ' 3.10'
33+ - run : |
34+ poetry publish
35+ env:
36+ POETRY_PYPI_TOKEN_PYPI: ${{secrets.pypi_token}}
You can’t perform that action at this time.
0 commit comments