Commit a38d4998 by Zachary Snow

fix release artifact uploads

parent 3831dcff
...@@ -78,33 +78,30 @@ jobs: ...@@ -78,33 +78,30 @@ jobs:
make test make test
release: release:
runs-on: ${{ matrix.os }} runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
os: name: [macOS, Linux, Windows]
- ubuntu-18.04
- macOS-10.15
- windows-2019
needs: build needs: build
if: github.event_name == 'release' if: github.event_name == 'release'
steps: steps:
- name: Download Artifact - name: Download Artifact
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
with: with:
name: ${{ runner.os }} name: ${{ matrix.name }}
path: sv2v-${{ runner.os }} path: sv2v-${{ matrix.name }}
- name: Mark Binary Executable - name: Mark Binary Executable
if: runner.os == 'macOS' || runner.os == 'Linux' if: matrix.name == 'macOS' || matrix.name == 'Linux'
run: chmod +x */sv2v run: chmod +x */sv2v*
- name: Create ZIP - name: Create ZIP
shell: bash shell: bash
run: zip -r sv2v-${{ runner.os }} ./sv2v-${{ runner.os }} run: zip -r sv2v-${{ matrix.name }} ./sv2v-${{ matrix.name }}
- name: Upload Release Asset - name: Upload Release Asset
uses: actions/upload-release-asset@v1.0.1 uses: actions/upload-release-asset@v1.0.1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ github.event.release.upload_url }} upload_url: ${{ github.event.release.upload_url }}
asset_path: ./sv2v-${{ runner.os }}.zip asset_path: ./sv2v-${{ matrix.name }}.zip
asset_name: sv2v-${{ runner.os }}.zip asset_name: sv2v-${{ matrix.name }}.zip
asset_content_type: application/zip asset_content_type: application/zip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment