on master help sign in
ci: Simplify tag name fetching (set-output is deprecated)
commit6aa345a6ce905a0f65e3526f93c3a46a777eaa39 authorBlaž Hrastnik <blaz@mxxn.io> dateTue 22 Nov 2022, 18:05 (4 years ago) parent33ae498
1 file changed+3−13
.github/workflows/release.yml+3−13
.github/workflows/release.yml+3−13
@@ -218,16 +218,6 @@ jobs:
218218
219219 - uses: actions/download-artifact@v3
220220
221− - name: Calculate tag name
222− run: |
223− name=dev
224− if [[ $GITHUB_REF == refs/tags/* ]]; then
225− name=${GITHUB_REF:10}
226− fi
227− echo ::set-output name=val::$name
228− echo TAG=$name >> $GITHUB_ENV
229− id: tagname
230−
231221 - name: Build archive
232222 shell: bash
233223 run: |
@@ -247,7 +237,7 @@ jobs:
247237 if [[ $platform =~ "windows" ]]; then
248238 exe=".exe"
249239 fi
250− pkgname=helix-$TAG-$platform
240+ pkgname=helix-$GITHUB_REF_NAME-$platform
251241 mkdir $pkgname
252242 cp $source/LICENSE $source/README.md $pkgname
253243 mkdir $pkgname/contrib
@@ -267,7 +257,7 @@ jobs:
267257 fi
268258 done
269259
270− tar cJf dist/helix-$TAG-source.tar.xz -C $source .
260+ tar cJf dist/helix-$GITHUB_REF_NAME-source.tar.xz -C $source .
271261 mv dist $source/
272262
273263 - name: Upload binaries to release
@@ -277,7 +267,7 @@ jobs:
277267 repo_token: ${{ secrets.GITHUB_TOKEN }}
278268 file: dist/*
279269 file_glob: true
280− tag: ${{ steps.tagname.outputs.val }}
270+ tag: ${{ github.ref_name }}
281271 overwrite: true
282272
283273 - name: Upload binaries as artifact