Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Upload release artifacts to a release
Browse files Browse the repository at this point in the history
  • Loading branch information
avive authored Jun 25, 2021
1 parent 1fb2750 commit d892c31
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,44 @@ jobs:
with:
name: macoOS.zip
path: smrepl_darwin_amd64

release:
runs-on: ubuntu-latest
needs: [build]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/v')

steps:
- id: release
uses: release-drafter/release-drafter@v5

- uses: actions/download-artifact@v2

- run: |
VER="${{ github.ref }}"
echo "VERSION=${VER#refs/tags/v}" >> $GITHUB_ENV
- name: Upload Linux
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./linux.zip
asset_name: linux.zip
asset_content_type: application/zip

- name: Upload Windows
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./windows.zip
asset_name: windows.zip
asset_content_type: application/zip

- name: Upload MacOS
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./macOS.zip
asset_name: macOS.zip
asset_content_type: application/zip

0 comments on commit d892c31

Please sign in to comment.