discard use of release.env

This commit is contained in:
wusatosi 2023-05-03 10:42:43 -04:00
parent fe23e62a07
commit 3a8d41e5bc
No known key found for this signature in database
GPG Key ID: 2721B215244B24CE

View File

@ -116,14 +116,6 @@ jobs:
${{ env.RELEASE_DESCRIPTION }} ${{ env.RELEASE_DESCRIPTION }}
Built from ${{ env.LLVM_REPO }}@${{ env.LLVM_COMMIT }}. Built from ${{ env.LLVM_REPO }}@${{ env.LLVM_COMMIT }}.
- name: Preserve release info
run: |
echo "TAG_NAME=${{ env.TAG_NAME }}" >> release.env
- name: Upload result
uses: actions/upload-artifact@v3
with:
name: release
path: release.env
# Build clangd using CMake/Ninja. # Build clangd using CMake/Ninja.
# #
# This step is a template that runs on each OS, build config varies slightly. # This step is a template that runs on each OS, build config varies slightly.
@ -245,9 +237,7 @@ jobs:
with: with:
name: release name: release
- name: Put release info into env - name: Put release info into env
run: | run: cat commit.env >> $GITHUB_ENV
cat commit.env >> $GITHUB_ENV
cat release.env >> $GITHUB_ENV
shell: bash shell: bash
# Use environment variables set above to create a directory. This needs # Use environment variables set above to create a directory. This needs
# to be a separate step because they are not in the context yet when # to be a separate step because they are not in the context yet when
@ -325,12 +315,12 @@ jobs:
needs: build needs: build
if: always() && needs.build.result == 'success' if: always() && needs.build.result == 'success'
steps: steps:
- name: Fetch release info - name: Fetch environment variables
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: release name: env
- name: Update the env variables - name: Set environment variables
run: cat release.env >> $GITHUB_ENV run: cat commit.env >> $GITHUB_ENV
- name: Setup gh - name: Setup gh
uses: wusatosi/setup-gh@v1 uses: wusatosi/setup-gh@v1
with: with: