File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Create Release
2
+ run-name : creating release
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ create-release :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+ - name : Set up Python
12
+ uses : actions/setup-python@v5
13
+ with :
14
+ python-version : " 3.11"
15
+ - name : Install pypa/build
16
+ run : python3 -m pip install build --user
17
+
18
+ - name : Build a binary wheel and a source tarball
19
+ run : python3 -m build
20
+
21
+ - name : Make release
22
+ env :
23
+ GITHUB_TOKEN : ${{ github.token }}
24
+ run : |
25
+ REF_NAME="${{ github.ref_name }}-$(date +"%Y-%m-%d")"
26
+ gh release create "$REF_NAME" --repo '${{ github.repository }}' --notes ""
27
+ gh release upload "$REF_NAME" dist/** --repo '${{ github.repository }}'
You can’t perform that action at this time.
0 commit comments