File tree Expand file tree Collapse file tree 4 files changed +78
-10
lines changed
Expand file tree Collapse file tree 4 files changed +78
-10
lines changed Original file line number Diff line number Diff line change 1717 permissions :
1818 contents : write
1919 pull-requests : write
20- outputs :
21- release_created : ${{ steps.release-please.outputs.release_created }}
2220
2321 steps :
2422 - name : 🚀 Create Release
3230 github-app-key : ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }}
3331 github-app-name : ${{ secrets.UGRC_RELEASE_BOT_NAME }}
3432 github-app-email : ${{ secrets.UGRC_RELEASE_BOT_EMAIL }}
33+ extra-files : src/projectname/version.py
Original file line number Diff line number Diff line change 1+ name : Release Events
2+ on :
3+ release :
4+ types : [published]
5+
6+ env :
7+ GH_TOKEN : ${{ github.token }}
8+
9+ jobs :
10+ build :
11+ # disabled for this project since we don't want to publish it
12+ if : false
13+ name : Build
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : ⬇️ Set up code
17+ uses : actions/checkout@v4
18+ with :
19+ show-progress : false
20+
21+ - name : 🐍 Set up Python
22+ uses : actions/setup-python@v5
23+ with :
24+ python-version-file : .python-version
25+ cache : pip
26+ cache-dependency-path : setup.py
27+
28+ - name : 📦 Build package
29+ run : pipx run build
30+
31+ - name : ⬆️ Upload artifacts
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : build-artifacts
35+ path : dist
36+ retention-days : 1
37+
38+ publish :
39+ name : Publish
40+ runs-on : ubuntu-latest
41+ needs : build
42+ environment :
43+ name : prod
44+ url : https://pypi.org/project/<project-name>
45+ permissions :
46+ id-token : write
47+
48+ steps :
49+ - name : ⬇️ Download artifacts
50+ uses : actions/download-artifact@v4
51+ with :
52+ name : build-artifacts
53+ path : dist
54+
55+ - name : 🚀 Publish to PyPI
56+ uses : pypa/gh-action-pypi-publish@release/v1
57+
58+ notify :
59+ name : Notifications
60+ runs-on : ubuntu-latest
61+ needs : publish
62+ permissions :
63+ contents : read
64+ pull-requests : write
65+ issues : write
66+ steps :
67+ - name : Release Notifier
68+ uses : agrc/release-issue-notifications-action@v1
69+ with :
70+ repo-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1414 " oidc" ,
1515 " opensgid" ,
1616 " pgsql" ,
17+ " pipx" ,
18+ " projectname" ,
1719 " psycopg" ,
1820 " pygsheets" ,
1921 " pyodbc" ,
22+ " pypa" ,
23+ " pypi" ,
2024 " pytest" ,
2125 " rindex" ,
2226 " sgid" ,
2529 " worknote"
2630 ],
2731 "editor.formatOnSave" : true ,
28- "editor.rulers" : [
29- 120
30- ],
32+ "editor.rulers" : [120 ],
3133 "coverage-gutters.showGutterCoverage" : false ,
3234 "coverage-gutters.showLineCoverage" : true ,
3335 "coverage-gutters.showRulerCoverage" : false ,
4042 "source.organizeImports" : " explicit"
4143 },
4244 "[python]" : {
43- "editor.defaultFormatter" : " charliermarsh.ruff" ,
45+ "editor.defaultFormatter" : " charliermarsh.ruff"
4446 }
4547}
Original file line number Diff line number Diff line change 1- """A single source of truth for the version in a programmatically-accessible variable.
2-
3- This must only include a single line: __version__ = 'x.y.z'
4- """
1+ """A single source of truth for the version in a programmatically-accessible variable."""
52
63__version__ = "1.0.2"
You can’t perform that action at this time.
0 commit comments