correct artifact upload command. Don't upload unneeded windows artifact

This commit is contained in:
Jared Weakly 2020-06-18 11:38:09 -07:00
parent f43959a1bd
commit 5f86556c5c
2 changed files with 6 additions and 2 deletions

View File

@ -157,6 +157,7 @@ jobs:
run: .github/ci.sh zip_dist
- uses: actions/upload-artifact@v2
if: runner.os != 'Windows'
with:
name: ${{ needs.outputs.outputs.name }}-${{ runner.os }}-x86_64
path: "${{ needs.outputs.outputs.name }}-${{ runner.os }}-x86_64.tar.gz*"
@ -164,7 +165,7 @@ jobs:
- uses: actions/upload-artifact@v2
if: runner.os == 'Windows'
with:
name: ${{ needs.outputs.outputs.name }}-${{ runner.os }}-x86_64.msi
name: ${{ needs.outputs.outputs.name }}-${{ runner.os }}-x86_64
path: "cryptol.msi*"
release:
@ -184,13 +185,15 @@ jobs:
needs: [outputs, bundle, release]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
path: artifacts
- run: ls -alR
- run: |
assets=()
for a in ./artifacts/*; do assets+=("-a" "$a"); done
find . \( -name 'cryptol*.tar.gz*' -o -name '*.msi*' \) -type f -print0 |
while IFS= read -r -d '' a; do assets+=("-a" "$a"); done
tag="${GITHUB_REF##*/}"
hub release edit -d "${assets[@]}" -m "" "$tag"
env:

View File

@ -98,6 +98,7 @@ jobs:
run: .github/ci.sh zip_dist
- uses: actions/upload-artifact@v2
if: runner.os != 'Windows'
with:
name: ${{ needs.outputs.outputs.cryptol-name }}-${{ runner.os }}
path: "${{ needs.outputs.outputs.cryptol-name }}.tar.gz*"