File tree 4 files changed +78
-10
lines changed 4 files changed +78
-10
lines changed Original file line number Diff line number Diff line change 17
17
permissions :
18
18
contents : write
19
19
pull-requests : write
20
- outputs :
21
- release_created : ${{ steps.release-please.outputs.release_created }}
22
20
23
21
steps :
24
22
- name : 🚀 Create Release
32
30
github-app-key : ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }}
33
31
github-app-name : ${{ secrets.UGRC_RELEASE_BOT_NAME }}
34
32
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 14
14
" oidc" ,
15
15
" opensgid" ,
16
16
" pgsql" ,
17
+ " pipx" ,
18
+ " projectname" ,
17
19
" psycopg" ,
18
20
" pygsheets" ,
19
21
" pyodbc" ,
22
+ " pypa" ,
23
+ " pypi" ,
20
24
" pytest" ,
21
25
" rindex" ,
22
26
" sgid" ,
25
29
" worknote"
26
30
],
27
31
"editor.formatOnSave" : true ,
28
- "editor.rulers" : [
29
- 120
30
- ],
32
+ "editor.rulers" : [120 ],
31
33
"coverage-gutters.showGutterCoverage" : false ,
32
34
"coverage-gutters.showLineCoverage" : true ,
33
35
"coverage-gutters.showRulerCoverage" : false ,
40
42
"source.organizeImports" : " explicit"
41
43
},
42
44
"[python]" : {
43
- "editor.defaultFormatter" : " charliermarsh.ruff" ,
45
+ "editor.defaultFormatter" : " charliermarsh.ruff"
44
46
}
45
47
}
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."""
5
2
6
3
__version__ = "1.0.2"
You can’t perform that action at this time.
0 commit comments