Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vipranarayan14 committed Feb 11, 2020
1 parent 6fc1d9d commit 55d6ca0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ jobs:

strategy:
matrix:
platform: [windows-latest, ubuntu-latest]
include:
- os: windows-latest
artifact_name: vMonoSetup.exe
asset_name: vmono-windows-amd64
- os: ubuntu-latest
artifact_name: vMono.deb
asset_name: vmono-linux-amd64

runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -48,10 +54,6 @@ jobs:
run: |
pipenv run fbs installer
- name: Build project # This would actually build your project, using zip for an example artifact
run: |
zip --junk-paths my-artifact target/?(*.deb|*Setup.exe)
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -70,8 +72,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./my-artifact.zip
asset_name: my-artifact.zip
asset_path: target/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
asset_content_type: application/zip


0 comments on commit 55d6ca0

Please sign in to comment.