22
22
steps :
23
23
- name : Checkout sources
24
24
uses : actions/checkout@v2
25
+ - name : Get the version
26
+ id : get_version
27
+ uses : battila7/get-version-action@v2
25
28
- name : Install build tools
26
29
run : sudo apt-get install zip
27
30
- name : Install stable toolchain
@@ -43,17 +46,14 @@ jobs:
43
46
cp LICENSE dist/
44
47
cp target/${{ matrix.job.target }}/release/${{ matrix.job.output }} dist/
45
48
cd dist/ && zip -r ../dist.zip ./ && cd ..
46
- - name : Get the version
47
- id : get_version
48
- run : echo ::set-output name=VERSION::${${{ github.event.release.tag_name }}/v//}
49
49
- name : Upload binary distribution
50
50
uses : actions/upload-release-asset@v1
51
51
env :
52
52
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
53
with :
54
54
upload_url : ${{ steps.create_release.outputs.upload_url }}
55
55
asset_path : dist.zip
56
- asset_name : storagereloaded_${{ steps.get_version.outputs.VERSION }}_${{ matrix.job.name }}.zip
56
+ asset_name : storagereloaded_${{ steps.get_version.outputs.version-without-v }}_${{ matrix.job.name }}.zip
57
57
asset_content_type : application/zip
58
58
59
59
deb :
69
69
steps :
70
70
- name : Checkout sources
71
71
uses : actions/checkout@v2
72
+ - name : Get the version
73
+ id : get_version
74
+ uses : battila7/get-version-action@v2
72
75
- name : Install stable toolchain
73
76
uses : actions-rs/toolchain@v1
74
77
with :
@@ -93,15 +96,12 @@ jobs:
93
96
use-cross : false
94
97
command : deb
95
98
args : --no-build --no-strip --target=${{ matrix.job.target }}
96
- - name : Get the version
97
- id : get_version
98
- run : echo ::set-output name=VERSION::${${{ github.event.release.tag_name }}/v//}
99
99
- name : Upload deb
100
100
uses : actions/upload-release-asset@v1
101
101
env :
102
102
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103
103
with :
104
104
upload_url : ${{ steps.create_release.outputs.upload_url }}
105
- asset_path : target/${{ matrix.job.target }}/debian/storagereloaded_${{ steps.get_version.outputs.VERSION }}_${{ matrix.job.name }}.deb
106
- asset_name : storagereloaded_${{ steps.get_version.outputs.VERSION }}_${{ matrix.job.name }}.deb
105
+ asset_path : target/${{ matrix.job.target }}/debian/storagereloaded_${{ steps.get_version.outputs.version-without-v }}_${{ matrix.job.name }}.deb
106
+ asset_name : storagereloaded_${{ steps.get_version.outputs.version-without-v }}_${{ matrix.job.name }}.deb
107
107
asset_content_type : application/vnd.debian.binary-package
0 commit comments