Skip to content

Commit

Permalink
Merge pull request #46 from matmair/trusted-publisher
Browse files Browse the repository at this point in the history
Use Trusted publisher
  • Loading branch information
matmair authored Jun 23, 2024
2 parents df4aac8 + 80bdcfa commit d3503cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ env:
jobs:
build:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -23,9 +26,5 @@ jobs:
- name: Build binary
run: |
python3 -m build
- name: Publish tp PyPi
run: python3 -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_REPOSITORY: pypi
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "brother_ql-inventree"
version = "1.1"
version = "1.2a0"
description = "Python package to talk to Brother QL label printers"
readme = "README.md"
authors = [
Expand Down

0 comments on commit d3503cd

Please sign in to comment.