Skip to content

Commit

Permalink
chore(cd): use seperate steps for uploading releases
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jun 23, 2021
1 parent 97e098f commit 0182533
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,24 @@ jobs:
echo "::set-output name=RELEASE_BODY::${{ env.RELEASE_VERSION }}"
fi
- name: Upload the release
if: matrix.OS == 'ubuntu-18.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: git-cliff-${{ env.RELEASE_VERSION }}-${{ matrix.TARGET }}*
file_glob: true
tag: ${{ github.ref }}
overwrite: true
release_name: "Release v${{ env.RELEASE_VERSION }}"
body: "${{ steps.release.outputs.RELEASE_BODY }}"
- name: Upload the release
if: matrix.OS != 'ubuntu-18.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: git-cliff-${{ env.RELEASE_VERSION }}-${{ matrix.TARGET }}*
file_glob: true
tag: ${{ github.ref }}
release_name: "Release v${{ env.RELEASE_VERSION }}"

publish-docker:
name: Publish the Docker image
Expand Down

0 comments on commit 0182533

Please sign in to comment.