@@ -89,36 +89,36 @@ jobs:
89
89
- name : Set up Rust
90
90
uses : hecrj/setup-rust-action@v1
91
91
- uses : actions/checkout@master
92
+ - name : Set version
93
+ id : set_version
94
+ run : echo ::set-output name=WUTAG_VERSION::${GITHUB_REF/refs\/tags\//}
95
+ - name : Set archive name
96
+ id : set_name
97
+ run : echo ::set-output name=WUTAG_ARCHIVE::wutag-${{steps.set_version.outputs.WUTAG_VERSION}}-${{ matrix.target}}
92
98
- run : cargo build --release
93
99
- run : |
94
100
mkdir release
95
101
mv target/release/wutag release/
96
102
- working-directory : ./release
103
+ name : Create archives
97
104
run : |
98
- tar -zcvf wutag-${{ matrix.target }}.tar.gz .
99
- tar -Jcvf wutag-${{ matrix.target }}.tar.xz .
100
-
101
- - name : Get the version
102
- id : get_version
103
- run : echo ::set-output name=WUTAG_VERSION::${GITHUB_REF/refs\/tags\//}
104
- - name : Set archive name
105
- id : set_name
106
- run : echo ::set-output name=WUTAG_ARCHIVE::wutag-${{steps.get_version.outputs.WUTAG_VERSION}}-${{ matrix.target}}
105
+ tar -zcvf ../${{ steps.set_name.outputs.WUTAG_ARCHIVE }}.tar.gz .
106
+ tar -Jcvf ../${{ steps.set_name.outputs.WUTAG_ARCHIVE }}.tar.xz .
107
107
- name : Upload gz
108
108
uses : svenstaro/upload-release-action@v2
109
109
with :
110
110
repo_name : wojciechkepka/wutag
111
111
repo_token : ${{ secrets.GITHUB_TOKEN }}
112
- file : release/ ${{ steps.set_name.outputs.WUTAG_ARCHIVE }}.tar.gz
112
+ file : ${{ steps.set_name.outputs.WUTAG_ARCHIVE }}.tar.gz
113
113
asset_name : ${{ steps.set_name.outputs.WUTAG_ARCHIVE }}.tar.gz
114
- tag : ${{ steps.get_version .outputs.WUTAG_VERSION }}
114
+ tag : ${{ steps.set_version .outputs.WUTAG_VERSION }}
115
115
overwrite : true
116
116
- name : Upload xz
117
117
uses : svenstaro/upload-release-action@v2
118
118
with :
119
119
repo_name : wojciechkepka/wutag
120
120
repo_token : ${{ secrets.GITHUB_TOKEN }}
121
- file : release/ ${{ steps.set_name.outputs.WUTAG_ARCHIVE }}.tar.xz
121
+ file : ${{ steps.set_name.outputs.WUTAG_ARCHIVE }}.tar.xz
122
122
asset_name : ${{ steps.set_name.outputs.WUTAG_ARCHIVE }}.tar.xz
123
- tag : ${{ steps.get_version .outputs.WUTAG_VERSION }}
123
+ tag : ${{ steps.set_version .outputs.WUTAG_VERSION }}
124
124
overwrite : true
0 commit comments