4
4
workflow_dispatch :
5
5
inputs :
6
6
version :
7
- description : ' Version to release - make sure its same as setup.py'
7
+ description : " Version to release - make sure its same as setup.py"
8
8
required : true
9
9
changelog :
10
- description : ' Release changelog description'
10
+ description : " Release changelog description"
11
11
required : false
12
12
13
13
jobs :
@@ -18,65 +18,65 @@ jobs:
18
18
19
19
strategy :
20
20
matrix :
21
- python-version : [' 3.8' ]
21
+ python-version : [" 3.8" ]
22
22
23
23
steps :
24
- - name : Checkout code
25
- uses : actions/checkout@v4
24
+ - name : Checkout code
25
+ uses : actions/checkout@v4
26
26
27
- - name : Set up Python ${{ matrix.python-version }}
28
- uses : actions/setup-python@v4
29
- with :
30
- python-version : ${{ matrix.python-version }}
27
+ - name : Set up Python ${{ matrix.python-version }}
28
+ uses : actions/setup-python@v4
29
+ with :
30
+ python-version : ${{ matrix.python-version }}
31
31
32
- - name : Install dependencies
33
- run : |
34
- python -m pip install --upgrade pip
35
- pip install setuptools wheel build
32
+ - name : Install dependencies
33
+ run : |
34
+ python -m pip install --upgrade pip
35
+ pip install setuptools wheel build
36
36
37
- - name : Build package
38
- run : python -m build
37
+ - name : Build package
38
+ run : python -m build
39
39
40
- - name : Upload artifacts
41
- uses : actions/upload-artifact@v3
42
- with :
43
- name : dist-${{ matrix.python-version }}
44
- path : dist/
40
+ - name : Upload artifacts
41
+ uses : actions/upload-artifact@v4
42
+ with :
43
+ name : dist-${{ matrix.python-version }}
44
+ path : dist/
45
45
46
46
publish :
47
47
needs : release
48
48
runs-on : ubuntu-latest
49
49
50
50
steps :
51
- - name : Checkout code
52
- uses : actions/checkout@v4
51
+ - name : Checkout code
52
+ uses : actions/checkout@v4
53
53
54
- - name : Download all artifacts
55
- uses : actions/download-artifact@v3
56
- with :
57
- path : dist
54
+ - name : Download all artifacts
55
+ uses : actions/download-artifact@v4
56
+ with :
57
+ path : dist
58
58
59
- - name : Generate Changelog
60
- id : changelog
61
- run : |
62
- if [ -z "${{ github.event.inputs.changelog }}" ]; then
63
- echo "changelog=Release version ${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
64
- else
65
- echo "changelog=${{ github.event.inputs.changelog }}" >> $GITHUB_OUTPUT
66
- fi
59
+ - name : Generate Changelog
60
+ id : changelog
61
+ run : |
62
+ if [ -z "${{ github.event.inputs.changelog }}" ]; then
63
+ echo "changelog=Release version ${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
64
+ else
65
+ echo "changelog=${{ github.event.inputs.changelog }}" >> $GITHUB_OUTPUT
66
+ fi
67
67
68
- - name : Create Git Tag
69
- uses : EndBug/latest-tag@latest
70
- with :
71
- tag-name : v${{ github.event.inputs.version }}
68
+ - name : Create Git Tag
69
+ uses : EndBug/latest-tag@latest
70
+ with :
71
+ tag-name : v${{ github.event.inputs.version }}
72
72
73
- - name : Create GitHub Release
74
- uses : softprops/action-gh-release@v1
75
- with :
76
- tag_name : v${{ github.event.inputs.version }}
77
- body : ${{ steps.changelog.outputs.changelog }}
78
- files : |
79
- dist/**/*.whl
80
- dist/**/*.tar.gz
81
- env :
82
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73
+ - name : Create GitHub Release
74
+ uses : softprops/action-gh-release@v1
75
+ with :
76
+ tag_name : v${{ github.event.inputs.version }}
77
+ body : ${{ steps.changelog.outputs.changelog }}
78
+ files : |
79
+ dist/**/*.whl
80
+ dist/**/*.tar.gz
81
+ env :
82
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments