Skip to content

Commit

Permalink
Add workflow for docs and pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
baluyotraf committed Mar 21, 2024
1 parent 5aca5aa commit 57719d1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
tags:
- v*
pull_request:

jobs:
Expand All @@ -28,6 +26,7 @@ jobs:
- run:
poetry run pre-commit run --show-diff-on-failure --color=always --all
test:
needs: lint-format
strategy:
matrix:
os:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: qa

on:
push:
tags:
- v*

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: abatilo/actions-poetry@v2
- run: git fetch origin gh-pages --depth=1
- run: poetry install --with docs
- run: poetry run mike deploy ${{ github.ref_name }} stable

publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- uses: abatilo/actions-poetry@v2
- run: poetry build
- run: poetry publish --dry-run
- run: poetry publish

0 comments on commit 57719d1

Please sign in to comment.