Skip to content

Commit

Permalink
fix release artifact uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
zachjs committed Mar 30, 2020
1 parent 3831dcf commit a38d499
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,33 +78,30 @@ jobs:
make test
release:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-18.04
strategy:
matrix:
os:
- ubuntu-18.04
- macOS-10.15
- windows-2019
name: [macOS, Linux, Windows]
needs: build
if: github.event_name == 'release'
steps:
- name: Download Artifact
uses: actions/download-artifact@v1
with:
name: ${{ runner.os }}
path: sv2v-${{ runner.os }}
name: ${{ matrix.name }}
path: sv2v-${{ matrix.name }}
- name: Mark Binary Executable
if: runner.os == 'macOS' || runner.os == 'Linux'
run: chmod +x */sv2v
if: matrix.name == 'macOS' || matrix.name == 'Linux'
run: chmod +x */sv2v*
- name: Create ZIP
shell: bash
run: zip -r sv2v-${{ runner.os }} ./sv2v-${{ runner.os }}
run: zip -r sv2v-${{ matrix.name }} ./sv2v-${{ matrix.name }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./sv2v-${{ runner.os }}.zip
asset_name: sv2v-${{ runner.os }}.zip
asset_path: ./sv2v-${{ matrix.name }}.zip
asset_name: sv2v-${{ matrix.name }}.zip
asset_content_type: application/zip

0 comments on commit a38d499

Please sign in to comment.