Skip to content

Commit

Permalink
ci: update to GITHUB_ENV (#18)
Browse files Browse the repository at this point in the history
Change derive from: BurntSushi/ripgrep@13d77ab
  • Loading branch information
sigmaSd authored Nov 17, 2020
1 parent 4e71c9d commit fd598ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
# Apparently, this is the right way to get a tag name. Really?
#
# See: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
echo "::set-env name=TERMCHAT_VERSION::${GITHUB_REF#refs/tags/}"
echo "TERMCHAT_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "version is: ${{ env.TERMCHAT_VERSION }}"
- name: Create GitHub release
Expand Down Expand Up @@ -118,10 +118,10 @@ jobs:
shell: bash
run: |
release_upload_url="$(cat artifacts/release-upload-url)"
echo "::set-env name=RELEASE_UPLOAD_URL::$release_upload_url"
echo "RELEASE_UPLOAD_URL=$release_upload_url" >> $GITHUB_ENV
echo "release upload url: $RELEASE_UPLOAD_URL"
release_version="$(cat artifacts/release-version)"
echo "::set-env name=RELEASE_VERSION::$release_version"
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
echo "release version: $RELEASE_VERSION"
- name: Build release binary
Expand All @@ -139,11 +139,11 @@ jobs:
if [ "${{ matrix.os }}" = "windows-2019" ]; then
cp "target/release/termchat.exe" "$staging/"
7z a "$staging.zip" "$staging"
echo "::set-env name=ASSET::$staging.zip"
echo "ASSET=$staging.zip" >> $GITHUB_ENV
else
cp "target/release/termchat" "$staging/"
tar czf "$staging.tar.gz" "$staging"
echo "::set-env name=ASSET::$staging.tar.gz"
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
fi
- name: Upload release archive
Expand Down

0 comments on commit fd598ff

Please sign in to comment.