Skip to content

Commit 19417c3

Browse files
committed
👷 pypi trusted release
1 parent dffd367 commit 19417c3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

‎.github/workflows/publish.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ on:
44
release:
55
types:
66
- published
7+
workflow_dispatch:
78

89
jobs:
910
pypi-publish:
1011
name: PyPI
1112
if: github.repository_owner == 'juftin'
1213
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi
16+
url: https://pypi.org/p/lunchable
17+
permissions:
18+
id-token: write
1319
steps:
1420
- name: Check out the repository
1521
uses: actions/checkout@v4
@@ -28,10 +34,7 @@ jobs:
2834
run: |
2935
hatch build
3036
- name: Publish package on PyPI
31-
uses: pypa/gh-action-pypi-publish@v1.8.11
32-
with:
33-
user: __token__
34-
password: ${{ secrets.PYPI_TOKEN }}
37+
uses: pypa/gh-action-pypi-publish@release/v1
3538

3639
docker-hub-publish:
3740
name: docker-hub

‎.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ fail_fast: false
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.4.0
6+
rev: v4.6.0
77
hooks:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
@@ -14,7 +14,7 @@ repos:
1414
- id: mixed-line-ending
1515

1616
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
17-
rev: v2.8.0
17+
rev: v2.13.0
1818
hooks:
1919
- id: pretty-format-toml
2020
args: [--autofix]

0 commit comments

Comments
 (0)