Skip to content

Commit 535335a

Browse files
committed
ci: fix windows ver
1 parent 98e1f43 commit 535335a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/draft.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
PROJECT_NAME: rust_template
2020
NIGHTLY_BODY: ${{ github.event.release.body }}
2121
LICENSE_FILE_REG: LICENS*|LICENSE-*|LICENSE-MIT|LICENSE-APACHE
22+
LICENSE_FILES_WINDOWS: LICENSE*
2223
# LICENSE_FILE: LICENS*
2324
# LICENSE_FILE: "LICENSE"
2425
# LICENSE_FILE: "LICENSE-*"
@@ -154,7 +155,7 @@ jobs:
154155
# We have to create a zip arch in order for draft to find it as the upload job handles it outside the container or gh handles it directly
155156
run: |
156157
$ARTIFACT_NAME="${{ env.PROJECT_NAME }}-${{ matrix.target }}-${{ github.ref_name }}"
157-
$LICENSE_FILE="${{ env.LICENSE_FILE }}"
158+
$LICENSE_FILE="${{ env.LICENSE_FILES_WINDOWS }}"
158159
# $DRAFT_DIR="${ARTIFACT_NAME}"
159160
New-Item -ItemType Directory -Path "$ARTIFACT_NAME"
160161
Copy-Item -Path "target\${{ matrix.target }}\release\${{ env.PROJECT_NAME }}.exe" -Destination "$ARTIFACT_NAME"

0 commit comments

Comments
 (0)