Skip to content

Commit

Permalink
chore(cd): use only one step for uploading releases
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jun 23, 2021
1 parent 9ff5c0f commit 42a714f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,15 @@ 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 }}
release_name: "Release v${{ env.RELEASE_VERSION }}"
overwrite: true
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 42a714f

Please sign in to comment.