Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean authored Sep 21, 2024
1 parent ae0eacd commit 97286e6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- if: matrix.os == 'windows-latest'
name: Set binary path name on windows
run: echo "BINARY_PATH=dist/Hastructure-exe.exe" >> $GITHUB_ENV
run: echo "BINARY_PATH=dist/Hastructure-exe.exe" >> $env:$GITHUB_ENV

- if: matrix.os != 'windows-latest'
name: Set binary path name on non-windows
Expand All @@ -90,14 +90,18 @@ jobs:
with:
name: release_url
path: release_url


- if: matrix.os == 'windows-latest'
name: Get Release File Name & Upload URL on Widows
run: |
echo "upload_url=$(cat release_url/release_url.txt)" >> $env:GITHUB_ENV
# See Note [environment variables]
- name: Get Release File Name & Upload URL not on Widows
- if: matrix.os != 'windows-latest'
name: Get Release File Name & Upload URL not on Widows
run: |
echo "upload_url=$(cat release_url/release_url.txt)" >> $GITHUB_ENV
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1
Expand Down

0 comments on commit 97286e6

Please # to comment.