We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5de482e + 5ccd20e commit 9f8ee69Copy full SHA for 9f8ee69
.github/workflows/release.yml
@@ -0,0 +1,36 @@
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
29
30
+ - uses: actions/setup-python@v4
31
32
+ python-version: '3.10'
33
+ - run: |
34
+ poetry publish
35
+ env:
36
+ POETRY_PYPI_TOKEN_PYPI: ${{secrets.pypi_token}}
0 commit comments