Skip to content

Commit

Permalink
Fix Release Github Action (#20)
Browse files Browse the repository at this point in the history
* Modify release GH action in order to run `twine` as python module
  • Loading branch information
erewok authored Aug 19, 2022
1 parent e42638a commit 2c106f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.9", "3.10"]
steps:
- uses: "actions/checkout@v3"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: "ubuntu-latest"

environment:
name: deploy
name: PyPi

steps:
- uses: "actions/checkout@v3"
Expand All @@ -22,9 +22,7 @@ jobs:
run: "poetry config virtualenvs.create false --local"
- name: "Run poetry update"
run: "poetry update"
- name: "Run poetry build"
run: "poetry build"
- name: "Publish to PyPI & deploy docs"
- name: "Publish to PyPI"
run: "scripts/release.sh"
env:
TWINE_USERNAME: __token__
Expand Down
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e

poetry build
poetry run twine check dist/*
poetry run twine upload dist/*
python -m twine check dist/*
python -m twine upload dist/*

0 comments on commit 2c106f3

Please sign in to comment.