Skip to content

Commit 9f8ee69

Browse files
authored
Merge pull request #25 from ludbek/feat/release-workflow
added a workflow for releasing webpreview
2 parents 5de482e + 5ccd20e commit 9f8ee69

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

+36
Original file line numberDiff line numberDiff line change
@@ -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+
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}}

0 commit comments

Comments
 (0)