Skip to content

Commit

Permalink
fixed release workflow [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
filipdutescu committed Jul 3, 2020
1 parent efbfff6 commit 461b90c
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ jobs:
uses: actions/upload-artifact@v2
if: ${{ runner.os == 'Windows' }}
with:
name: ${{ env.PROJECT_NAME }}-${{ runner.os }}-${{ steps.version_win.outputs.name }}${{ matrix.config.artifact_ext }}
name: ${{ runner.os }}-${{ steps.version_win.outputs.name }}
path: '~/artifact.*'

- name: upload artifacts
uses: actions/upload-artifact@v2
if: ${{ runner.os != 'Windows' }}
with:
name: ${{ env.PROJECT_NAME }}-${{ runner.os }}-${{ steps.version.outputs.name }}${{ matrix.config.artifact_ext }}
name: ${{ runner.os }}-${{ steps.version.outputs.name }}
path: '~/artifact.*'

release:
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
- name: download artifact
uses: actions/download-artifact@v2
with:
name: "${{ env.PROJECT_NAME }}-Linux-${{ steps.version.outputs.name }}.tar.gz"
name: "Linux-${{ steps.version.outputs.name }}"
path: ./

- name: upload ubuntu release asset
Expand All @@ -152,26 +152,38 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "${{ github.workspace }}/${{ env.PROJECT_NAME }}-Linux-${{ steps.version.outputs.name }}.tar.gz"
asset_path: "artifact.tar.gz"
asset_name: "${{ env.PROJECT_NAME }}-Linux-${{ steps.version.outputs.name }}.tar.gz"
asset_content_type: application/x-tar

- name: download artifact
uses: actions/download-artifact@v2
with:
name: "Windows-${{ steps.version.outputs.name }}"
path: ./

- name: upload windows release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "${{ github.workspace }}/${{ env.PROJECT_NAME }}-Windows-${{ steps.version.outputs.name }}.zip"
asset_path: "artifact.zip"
asset_name: "${{ env.PROJECT_NAME }}-Windows-${{ steps.version.outputs.name }}.zip"
asset_content_type: application/zip

- name: download artifact
uses: actions/download-artifact@v2
with:
name: "macOS-${{ steps.version.outputs.name }}"
path: ./

- name: upload macos release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "${{ github.workspace }}/${{ env.PROJECT_NAME }}-macOS-${{ steps.version.outputs.name }}.tar.gz"
asset_path: "./artifact.tar.gz"
asset_name: "${{ env.PROJECT_NAME }}-macOS-${{ steps.version.outputs.name }}.tar.gz"
asset_content_type: application/x-tar

0 comments on commit 461b90c

Please sign in to comment.