Skip to content

Commit

Permalink
Merge pull request #25 from ludbek/feat/release-workflow
Browse files Browse the repository at this point in the history
added a workflow for releasing webpreview
  • Loading branch information
ludbek authored Aug 10, 2022
2 parents 5de482e + 5ccd20e commit 9f8ee69
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release webpreview

on:
release:
types: [created]

jobs:
tests:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/setup
- name: Tests
run: |
# Run tests
poetry run pytest
publish-npm:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: |
poetry publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{secrets.pypi_token}}

0 comments on commit 9f8ee69

Please sign in to comment.