Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
Add artifacts to release
Browse files Browse the repository at this point in the history
  • Loading branch information
theothertomelliott committed Mar 29, 2020
1 parent c7cd2ee commit 3856fc6
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
path: edward-0.0.0-${{ matrix.goos }}-${{ matrix.goarch}}.zip
release:
name: 'Release'
needs: test
needs: [test, build]
runs-on: ubuntu-latest
steps:
- name: Create Release
Expand All @@ -53,4 +53,17 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
prerelease: false
- name: Download build
uses: actions/download-artifact@v1
with:
name: build
- name: Upload MacOS
uses: actions/upload-release-asset@v1
env:
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: ./edward-0.0.0-darwin-amd64.zip
asset_name: edward-0.0.0-macOS-64bit.zip
asset_content_type: application/zip

0 comments on commit 3856fc6

Please sign in to comment.