Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Loweredgames committed Feb 4, 2024
1 parent d0a9dbd commit 1879126
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Construct filename
id: construct_filename
run: |
filename="${{ env.MAP_NAME }}${{ steps.get_version.outputs.RELEASE }}${{ steps.get_version.outputs.NIGHTLY }}"
filename="${{ env.MAP_NAME }}_${{ steps.get_version.outputs.RELEASE }}_${{ steps.get_version.outputs.NIGHTLY }}"
filename="${filename}.zip"
echo "::set-output name=zipname::$filename"
- name: Install 7zip
Expand All @@ -50,15 +50,14 @@ jobs:
- name: Construct release name
id: construct_release_name
run: |
base_name="${{ env.MAP_NAME_SPACE }} | ${{ steps.get_version.outputs.RELEASE }}${{ steps.get_version.outputs.NIGHTLY }}"
else
base_name="${{ env.MAP_NAME_SPACE }} | ${{ steps.get_version.outputs.RELEASE }}_${{ steps.get_version.outputs.NIGHTLY }}"
release_name="$base_name"
fi
echo "::set-output name=releasename::$release_name"
- name: Construct tag name
id: construct_tag
run: |
tag_name="${{ steps.get_version.outputs.RELEASE }}${{ steps.get_version.outputs.NIGHTLY }}"
tag_name="${{ steps.get_version.outputs.RELEASE }}_${{ steps.get_version.outputs.NIGHTLY }}"
fi
echo "::set-output name=tag::$tag_name"
- name: Determine pre-release status
Expand All @@ -78,7 +77,7 @@ jobs:
files: |
${{ steps.construct_filename.outputs.zipname }}
env:
GH_TOKEN: ${{ steps.get_version.outputs.RELEASE }}${{ steps.get_version.outputs.NIGHTLY }}
GH_TOKEN: ${{ steps.get_version.outputs.RELEASE }}_${{ steps.get_version.outputs.NIGHTLY }}
- name: Get Download URL
run: |
echo "${{ env.REPO_URL }}/releases/download/${{ steps.construct_tag.outputs.tag }}/${{ steps.construct_filename.outputs.zipname }}"

0 comments on commit 1879126

Please sign in to comment.