File tree Expand file tree Collapse file tree 4 files changed +77
-0
lines changed
Expand file tree Collapse file tree 4 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ name : PR Check
2+
3+ on :
4+ pull_request_target :
5+ branches : [main]
6+
7+ permissions :
8+ contents : read
9+ pull-requests : write
10+
11+ jobs :
12+ check-release :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ ref : refs/pull/${{ github.event.number }}/merge
18+ sparse-checkout : |
19+ RELEASE.md
20+ pyproject.toml
21+ sparse-checkout-cone-mode : false
22+
23+ - uses : autopub/autopub-action@v1.1.0
24+ with :
25+ command : check
26+ github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ permissions :
8+ contents : write
9+ pull-requests : write
10+ id-token : write
11+
12+ jobs :
13+ check :
14+ runs-on : ubuntu-latest
15+ outputs :
16+ has-release : ${{ steps.check.outputs.has-release }}
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - uses : autopub/autopub-action@v1.1.0
21+ id : check
22+ with :
23+ command : check
24+ github-token : ${{ secrets.GITHUB_TOKEN }}
25+
26+ release :
27+ needs : check
28+ if : needs.check.outputs.has-release == 'true'
29+ runs-on : ubuntu-latest
30+ steps :
31+ - uses : actions/checkout@v4
32+ with :
33+ fetch-depth : 0
34+ token : ${{ github.token }}
35+
36+ - uses : autopub/autopub-action@v1.1.0
37+ with :
38+ command : prepare
39+
40+ - uses : autopub/autopub-action@v1.1.0
41+ with :
42+ command : build
43+
44+ - uses : autopub/autopub-action@v1.1.0
45+ with :
46+ command : publish
47+ github-token : ${{ github.token }}
Original file line number Diff line number Diff line change 22.pytest_cache /
33__pycache__ /
44* .pyc
5+ .autopub /
Original file line number Diff line number Diff line change @@ -26,3 +26,6 @@ packages = ["src/strawberry_autopub_plugins"]
2626
2727[tool .pytest .ini_options ]
2828pythonpath = [" src" ]
29+
30+ [tool .autopub ]
31+ plugins = [" uv" , " github" ]
You can’t perform that action at this time.
0 commit comments