File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Release"
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : Version number
8
+ required : true
9
+ type : string
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ # Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
15
+ contents : write
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - uses : actions/setup-python@v5
19
+ with :
20
+ python-version : 3.11
21
+ - name : cache poetry install
22
+ uses : actions/cache@v4
23
+ with :
24
+ path : ~/.local
25
+ key : poetry-2.0.1-0
26
+ - uses : snok/install-poetry@v1
27
+ with :
28
+ version : 2.0.1
29
+ virtualenvs-create : true
30
+ virtualenvs-in-project : true
31
+ - run : poetry version ${{ github.event.inputs.version }}
32
+ - uses : stefanzweifel/git-auto-commit-action@v5
33
+ with :
34
+ commit_message : Bump version
35
+ - name : release
36
+ uses : softprops/action-gh-release@v2
37
+ with :
38
+ tag_name : ${{ github.event.inputs.version }}
39
+ generate_release_notes : true
40
+ make_latest : true
You can’t perform that action at this time.
0 commit comments