Update GitHub workflow to use v4 artifact actions and replace deprecated upload-release-asset
This commit is contained in:
@@ -70,7 +70,7 @@ jobs:
|
|||||||
hdiutil create -srcfolder Oraset.app -volname Oraset -ov -format UDZO oraset.dmg
|
hdiutil create -srcfolder Oraset.app -volname Oraset -ov -format UDZO oraset.dmg
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: oraset-${{ matrix.os }}
|
name: oraset-${{ matrix.os }}
|
||||||
path: |
|
path: |
|
||||||
@@ -88,56 +88,18 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
uses: actions/upload-release-asset@v1
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
files: |
|
||||||
asset_path: artifacts/oraset-windows-latest/oraset.exe
|
artifacts/oraset-windows-latest/oraset.exe
|
||||||
asset_name: oraset-windows.exe
|
artifacts/oraset-ubuntu-latest/oraset
|
||||||
asset_content_type: application/octet-stream
|
artifacts/oraset-ubuntu-latest/oraset_1.0.0_amd64.deb
|
||||||
|
artifacts/oraset-macos-latest/oraset
|
||||||
- name: Upload Linux binary
|
artifacts/oraset-macos-latest/oraset.dmg
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: artifacts/oraset-ubuntu-latest/oraset
|
|
||||||
asset_name: oraset-linux
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|
||||||
- name: Upload Debian package
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: artifacts/oraset-ubuntu-latest/oraset_1.0.0_amd64.deb
|
|
||||||
asset_name: oraset-linux.deb
|
|
||||||
asset_content_type: application/vnd.debian.binary-package
|
|
||||||
|
|
||||||
- name: Upload macOS binary
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: artifacts/oraset-macos-latest/oraset
|
|
||||||
asset_name: oraset-macos
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|
||||||
- name: Upload macOS DMG
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: artifacts/oraset-macos-latest/oraset.dmg
|
|
||||||
asset_name: oraset-macos.dmg
|
|
||||||
asset_content_type: application/x-apple-diskimage
|
|
||||||
Reference in New Issue
Block a user