Skip to content

Commit

Permalink
Find the RPM under the dashless path
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Jul 1, 2020
1 parent c46b14e commit 9a8faf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
echo "::set-output name=upload_url::$URL"
VERSION=$(wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq '.[0].tag_name' | tr -d \"v)
echo "::set-output name=version::$VERSION"
RPM_VERSION=$(echo $VERSION | sed -e 's/-/_/g')
echo "::set-output name=rpm_version::$RPM_VERSION"
- name: Upload ckan.exe
uses: actions/upload-release-asset@v1.0.1
env:
Expand Down Expand Up @@ -66,8 +68,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release_data.outputs.upload_url }}
asset_path: _build/rpm/RPMS/noarch/ckan-${{ steps.release_data.outputs.version }}-1.noarch.rpm
asset_name: ckan-${{ steps.release_data.outputs.version }}-1.noarch.rpm
asset_path: _build/rpm/RPMS/noarch/ckan-${{ steps.release_data.outputs.rpm_version }}-1.noarch.rpm
asset_name: ckan-${{ steps.release_data.outputs.rpm_version }}-1.noarch.rpm
asset_content_type: application/x-rpm
- name: Upload AutoUpdater.exe
uses: actions/upload-release-asset@v1.0.1
Expand Down

0 comments on commit 9a8faf3

Please sign in to comment.