18
18
- name : Parse version
19
19
id : version
20
20
run : echo ::set-output name=version::${GITHUB_REF/refs\/tags\/v}
21
- - name : Generate expected file names
22
- id : file_names
23
- run : |
24
- echo ::set-output name=tar_file::shot-${{ steps.version.outputs.version }}.tar.gz
25
- echo ::set-output name=wheel_file::shot-${{ steps.version.outputs.version }}-py3-none-any.whl
26
21
- name : Install Poetry
27
22
run : |
28
23
python -m pip install --upgrade pip
31
26
run : poetry install
32
27
- name : Build package
33
28
run : poetry build
29
+ - name : Copy build files to generic names
30
+ id : file_names
31
+ run : |
32
+ cp shot-${{ steps.version.outputs.version }}.tar.gz shot.tar.gz
33
+ cp shot-${{ steps.version.outputs.version }}-py3-none-any.whl shot-py3-none-any.whl
34
+ echo ::set-output name=tar_file::shot.tar.gz
35
+ echo ::set-output name=wheel_file::shot-py3-none-any.whl
34
36
- name : Generate SHAs
35
37
id : sha
36
38
run : |
@@ -42,16 +44,16 @@ jobs:
42
44
env :
43
45
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
46
with :
45
- tag_name : ${{ github.ref }}
46
- release_name : Release ${{ github.ref }}
47
+ tag_name : ${{ github.ref }}
48
+ release_name : Release ${{ github.ref }}
47
49
draft : true
48
50
prerelease : true
49
51
body : |
50
52
SHA256 checksums
51
53
- ${{ steps.sha.outputs.tar_sha }}
52
54
- ${{ steps.sha.outputs.wheel_sha }}
53
55
- name : Upload tar.gz to Release
54
- id : upload-tar
56
+ id : upload-tar
55
57
uses : actions/upload-release-asset@v1
56
58
env :
57
59
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61
63
asset_name : ${{ steps.file_names.outputs.tar_file }}
62
64
asset_content_type : application/tar+gz
63
65
- name : Upload wheel to Release
64
- id : upload-wheel
66
+ id : upload-wheel
65
67
uses : actions/upload-release-asset@v1
66
68
env :
67
69
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments