aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-11-22 09:05:42 +0000
committerBlaž Hrastnik2022-11-22 09:08:11 +0000
commit6aa345a6ce905a0f65e3526f93c3a46a777eaa39 (patch)
tree20d871aae58a9134b158f654212bc485e259e126 /.github
parent33ae498e9f23f8f39a41abf8d79c09fc6964c2ea (diff)
ci: Simplify tag name fetching (set-output is deprecated)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml16
1 files changed, 3 insertions, 13 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8e805de2..7e184ff6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -218,16 +218,6 @@ jobs:
- uses: actions/download-artifact@v3
- - name: Calculate tag name
- run: |
- name=dev
- if [[ $GITHUB_REF == refs/tags/* ]]; then
- name=${GITHUB_REF:10}
- fi
- echo ::set-output name=val::$name
- echo TAG=$name >> $GITHUB_ENV
- id: tagname
-
- name: Build archive
shell: bash
run: |
@@ -247,7 +237,7 @@ jobs:
if [[ $platform =~ "windows" ]]; then
exe=".exe"
fi
- pkgname=helix-$TAG-$platform
+ pkgname=helix-$GITHUB_REF_NAME-$platform
mkdir $pkgname
cp $source/LICENSE $source/README.md $pkgname
mkdir $pkgname/contrib
@@ -267,7 +257,7 @@ jobs:
fi
done
- tar cJf dist/helix-$TAG-source.tar.xz -C $source .
+ tar cJf dist/helix-$GITHUB_REF_NAME-source.tar.xz -C $source .
mv dist $source/
- name: Upload binaries to release
@@ -277,7 +267,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
file_glob: true
- tag: ${{ steps.tagname.outputs.val }}
+ tag: ${{ github.ref_name }}
overwrite: true
- name: Upload binaries as artifact