mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-23 14:16:39 +03:00
correct artifact upload command. Don't upload unneeded windows artifact
This commit is contained in:
parent
f43959a1bd
commit
5f86556c5c
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -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:
|
||||
|
1
.github/workflows/nightly.yml
vendored
1
.github/workflows/nightly.yml
vendored
@ -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*"
|
||||
|
Loading…
Reference in New Issue
Block a user