Skip to content

Commit abd98ba

Browse files
authored
Create publish.yml
1 parent a17dd48 commit abd98ba

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish android_notify to PyPI(Connected to PyPi)
2+
3+
on:
4+
workflow_dispatch: # manual trigger
5+
#push:
6+
#tags:
7+
#- "v*" # publish when you push a version tag
8+
9+
permissions:
10+
id-token: write # REQUIRED for PyPI Trusted Publishing
11+
contents: read
12+
13+
jobs:
14+
build-and-publish:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.11"
25+
26+
- name: Install build backend
27+
run: pip install build
28+
29+
- name: Build the package
30+
run: python -m build
31+
32+
- name: Publish to PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)