Skip to content

Commit

Permalink
Working on release
Browse files Browse the repository at this point in the history
  • Loading branch information
nwillc committed Nov 19, 2020
1 parent 9d0fd73 commit 54bb43c
Showing 1 changed file with 16 additions and 35 deletions.
51 changes: 16 additions & 35 deletions .github/workflows/RELEASE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [{ 'os': 'darwin', 'arch': 'amd64'}, { 'os': 'linux', 'arch': 'amd64'}, { 'os': 'linux', 'arch': '386'}]
target: [ { 'os': 'darwin', 'arch': 'amd64' }, { 'os': 'linux', 'arch': 'amd64' }, { 'os': 'linux', 'arch': '386' } ]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -52,47 +52,28 @@ jobs:
draft: false
prerelease: false

- name: Download syncher_darwin_amd64
uses: actions/download-artifact@v2
with:
name: syncher_darwin_amd64

- name: Release syncher_darwin_amd64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./syncher_darwin_amd64.zip
asset_name: syncher_darwin_amd64.zip
asset_content_type: application/zip

- name: Download syncher_linux_amd64
uses: actions/download-artifact@v2
with:
name: syncher_linux_amd64
upload:
runs-on: ubuntu-latest
needs: [ artifacts, release ]
strategy:
matrix:
target: [ { 'os': 'darwin', 'arch': 'amd64' }, { 'os': 'linux', 'arch': 'amd64' }, { 'os': 'linux', 'arch': '386' } ]

- name: Release syncher_linux_amd64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./syncher_linux_amd64.zip
asset_name: syncher_linux_amd64.zip
asset_content_type: application/zip
steps:
- uses: actions/checkout@v2

- name: Download syncher_linux_386
- name: Download
uses: actions/download-artifact@v2
with:
name: syncher_linux_386
name: syncher_${{ matrix.target.os }}_${{ matrix.target.arch }}

- name: Release syncher_linux_386
- name: Uploadd
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./syncher_linux_386.zip
asset_name: syncher_linux_386.zip
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./syncher_${{ matrix.target.os }}_${{ matrix.target.arch }}.zip
asset_name: syncher_${{ matrix.target.os }}_${{ matrix.target.arch }}.zip
asset_content_type: application/zip

0 comments on commit 54bb43c

Please sign in to comment.