mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-08 20:19:04 +03:00
use ncipollo/release-action
This commit is contained in:
41
.github/workflows/publish-release.yml
vendored
41
.github/workflows/publish-release.yml
vendored
@@ -125,37 +125,12 @@ jobs:
|
|||||||
name: rpm-package
|
name: rpm-package
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create Release and Upload Assets
|
||||||
id: create_release
|
uses: ncipollo/release-action@v1
|
||||||
uses: actions/create-release@v1
|
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ github.run_number }}
|
tag: v${{ github.run_number }}
|
||||||
release_name: Release ${{ github.run_number }}
|
name: Release ${{ github.run_number }}
|
||||||
draft: false
|
artifacts: |
|
||||||
prerelease: false
|
artifacts/*.exe
|
||||||
generate_release_notes: true
|
artifacts/*.deb
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
artifacts/*.rpm
|
||||||
|
|
||||||
- name: Upload Windows installer to release
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: artifacts/*.exe
|
|
||||||
asset_name: clrsync-windows.exe
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|
||||||
- name: Upload DEB to release
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: artifacts/*.deb
|
|
||||||
asset_name: clrsync-linux.deb
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|
||||||
- name: Upload RPM to release
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: artifacts/*.rpm
|
|
||||||
asset_name: clrsync-linux.rpm
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
Reference in New Issue
Block a user