We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ac6f98 commit 8c909faCopy full SHA for 8c909fa
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,35 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - release
7
8
+jobs:
9
+ build-and-publish:
10
+ name: Build and publish to PyPI
11
+ runs-on: ubuntu-latest
12
+ environment:
13
+ name: pypi
14
+ url: https://pypi.org/p/pixivd
15
16
+ permissions:
17
+ id-token: write
18
19
+ steps:
20
+ - name: Checkout code
21
+ uses: actions/checkout@v4
22
23
+ - name: Set up Python
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: "3.x"
27
28
+ - name: Build
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ pip install build
32
+ python -m build
33
34
+ - name: Publish to PyPI
35
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments