nonebot-plugin-gh-automation 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ permissions:
7
+ contents: read
8
+
9
+ concurrency: pypi-publish
10
+
11
+ jobs:
12
+ build:
13
+ if: github.ref == 'refs/heads/main'
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ persist-credentials: false
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: '3.12'
22
+ - name: Build wheel and source distribution
23
+ run: |
24
+ python -m pip install build
25
+ python -m build
26
+ - uses: actions/upload-artifact@v4
27
+ with:
28
+ name: distributions
29
+ path: dist/
30
+ if-no-files-found: error
31
+
32
+ publish:
33
+ needs: build
34
+ runs-on: ubuntu-latest
35
+ environment:
36
+ name: pypi
37
+ url: https://pypi.org/project/nonebot-plugin-gh-automation/
38
+ permissions:
39
+ id-token: write
40
+ steps:
41
+ - uses: actions/download-artifact@v4
42
+ with:
43
+ name: distributions
44
+ path: dist/
45
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,14 @@
1
+ .venv/
2
+ __pycache__/
3
+ .pytest_cache/
4
+ .ruff_cache/
5
+ *.py[cod]
6
+ *.egg-info/
7
+ build/
8
+ dist/
9
+ .env
10
+ .env.*
11
+ gh_automation.toml
12
+ .gh-automation-cache/
13
+ .gh-automation-state.json
14
+ ..gh-automation-state.json.*.tmp