Skip to content

Commit bc8feb4

Browse files
committed
init
1 parent ae7cd98 commit bc8feb4

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,29 @@
44
name: Release
55

66
on:
7-
push:
8-
branches:
9-
- main
7+
push:
8+
branches:
9+
- main
1010

1111
jobs:
12-
build-and-publish:
13-
runs-on: ubuntu-latest
14-
permissions:
15-
# IMPORTANT: this permission is mandatory for trusted publishing
16-
id-token: write
17-
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v3
20-
- name: Set up Python
21-
uses: actions/setup-python@v4
22-
with:
23-
python-version: '3.x'
24-
- name: Install build dependencies
25-
run: python -m pip install -U setuptools wheel build
26-
- name: Build
27-
run: python -m build .
28-
- name: Publish
29-
uses: pypa/gh-action-pypi-publish@release/v1
30-
with:
31-
skip-existing: true
12+
build-and-publish:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
# IMPORTANT: this permission is mandatory for trusted publishing
16+
id-token: write
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.x'
24+
- name: Install build dependencies
25+
run: python -m pip install -U setuptools wheel build
26+
- name: Build
27+
run: python -m build .
28+
- name: Publish
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
skip-existing: true
32+
token: ${{ secrets.PYPI_TOKEN }} # Add this line

0 commit comments

Comments
 (0)