action: fix CI release job

This commit is contained in:
RadWolfie 2020-11-12 06:03:56 -06:00
parent 498cf39664
commit a6353f7554
1 changed files with 4 additions and 3 deletions

View File

@ -73,7 +73,8 @@ jobs:
env:
artifact_1: CxbxReloaded-Release-VS2019
artifact_2: CxbxReloaded-Release-VS2017
runs-on: windows-latest
# Use the Ubuntu image to make releases quicker.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download artifacts (1)
@ -87,8 +88,8 @@ jobs:
- name: Prepare artifacts for release
run: | # download-artifact doesn't download a zip, so rezip it
echo "short_commit_sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
7z a -mx1 "$env:artifact_1.zip" ".\$env:artifact_1\*"
7z a -mx1 "$env:artifact_2.zip" ".\$env:artifact_2\*"
7z a -mx1 "${{ env.artifact_1 }}.zip" "./${{ env.artifact_1 }}/*"
7z a -mx1 "${{ env.artifact_2 }}.zip" "./${{ env.artifact_2 }}/*"
- name: Create Release
id: create_release
uses: actions/create-release@v1.1.1