Skip to content

Commit

Permalink
Exchange deprecated upload-release-asset
Browse files Browse the repository at this point in the history
  • Loading branch information
phertweck committed Dec 19, 2022
1 parent 7735a47 commit 19611c5
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,25 +115,21 @@ jobs:

- name: Add plugin to release
id: upload-plugin-asset
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ steps.metadata.outputs.archive }}
asset_name: ${{ steps.metadata.outputs.archive }}
asset_content_type: application/zip
files: |
./${{ steps.metadata.outputs.archive }}
- name: Add checksum to release
id: upload-checksum-asset
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ steps.metadata.outputs.archive-checksum }}
asset_name: ${{ steps.metadata.outputs.archive-checksum }}
asset_content_type: text/plain
files: |
./${{ steps.metadata.outputs.archive-checksum }}
- name: Publish to Grafana.com
run: |
Expand Down

0 comments on commit 19611c5

Please sign in to comment.