Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
leocov-dev committed Jun 28, 2024
1 parent 3127ea3 commit 3bcfa6d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install Hatch
run: pipx install hatch

- name: Lint Checks
run: hatch fmt --check
run: pipx run hatch fmt --check

- name: Unit Tests
run: hatch test --all
run: pipx run hatch test --all


build_sdist:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish

on:
release:
types:
- published

jobs:
pypi:
runs-on: ubuntu-latest

permissions:
id-token: write

environment:
name: pypi
url: https://pypi.org/p/blurhash-pyside

name: PyPi Publish
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download Release Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release download ${{ github.event.release.tag_name }} --dir dist -p "*.whl" -p "*.tar.gz"

# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows
# trusted publishing workflow:
# https://docs.pypi.org/trusted-publishers/adding-a-publisher/
- name: Publish To PyPi
uses: pypa/[email protected]
1 change: 0 additions & 1 deletion scripts/validate-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
such as:
- git tag
- pyproject.toml version
- documentation version const
Only intended to be used by CI pipeline.
"""
Expand Down

0 comments on commit 3bcfa6d

Please sign in to comment.