Skip to content

Commit

Permalink
ci: fix workflow
Browse files Browse the repository at this point in the history
add github token

edit original file

install missing dependency
  • Loading branch information
steveoh committed Mar 10, 2022
1 parent a05981e commit 7547429
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish on tag
on:
release:
types: [published]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
publish:
name: Build and Publish
Expand All @@ -20,7 +21,10 @@ jobs:
- name: 👊 Bump version
run: |
TAG=$(gh release view --json tagName --jq ".tagName")
sed "s/version=.*$/version=\"$TAG\",/" setup.py
sed -i "s/version=.*$/version=\"$TAG\",/" setup.py
- name: Install wheel
run: pip install wheel

- name: 📦 Build package
run: python setup.py sdist bdist_wheel
Expand Down

0 comments on commit 7547429

Please sign in to comment.