mirror of
https://github.com/kunkunsh/kunkun-ext-neohtop.git
synced 2025-04-11 17:29:45 +00:00
one draft release that all workflows upload to
This commit is contained in:
parent
29651e2b9b
commit
ec815f9ab1
51
.github/workflows/linux-aarch64-nightly.yml
vendored
51
.github/workflows/linux-aarch64-nightly.yml
vendored
@ -1,9 +1,11 @@
|
|||||||
name: Linux (aarch64) Nightly Build
|
name: Linux (aarch64) Nightly Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Allows manual triggering
|
workflow_dispatch:
|
||||||
schedule:
|
inputs:
|
||||||
- cron: '0 0 * * *' # Run daily at midnight UTC
|
release_upload_url:
|
||||||
|
description: 'Release upload URL'
|
||||||
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@ -126,31 +128,28 @@ jobs:
|
|||||||
echo "Building Debian package for aarch64..."
|
echo "Building Debian package for aarch64..."
|
||||||
npm run tauri build -- --target aarch64-unknown-linux-gnu --bundles deb
|
npm run tauri build -- --target aarch64-unknown-linux-gnu --bundles deb
|
||||||
|
|
||||||
- name: Upload AppImage
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: linux-appimage-aarch64
|
|
||||||
path: src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
|
||||||
|
|
||||||
- name: Upload Debian Package
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: linux-deb-aarch64
|
|
||||||
path: src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/*.deb
|
|
||||||
|
|
||||||
- name: Get version from package.json
|
- name: Get version from package.json
|
||||||
id: version
|
id: version
|
||||||
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Release
|
- name: Upload AppImage to Release
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event.inputs.release_upload_url != ''
|
||||||
uses: softprops/action-gh-release@v1
|
uses: actions/upload-release-asset@v1
|
||||||
with:
|
|
||||||
name: "Linux ARM64 Nightly Build v${{ steps.version.outputs.version }}"
|
|
||||||
tag_name: "linux-arm64-nightly-${{ steps.version.outputs.version }}"
|
|
||||||
files: |
|
|
||||||
src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
|
||||||
src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/*.deb
|
|
||||||
prerelease: false
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
|
asset_path: src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
||||||
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_aarch64.AppImage
|
||||||
|
asset_content_type: application/x-executable
|
||||||
|
|
||||||
|
- name: Upload Debian Package to Release
|
||||||
|
if: github.event.inputs.release_upload_url != ''
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
|
asset_path: src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/*.deb
|
||||||
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_aarch64.deb
|
||||||
|
asset_content_type: application/vnd.debian.binary-package
|
51
.github/workflows/linux-x86_64-nightly.yml
vendored
51
.github/workflows/linux-x86_64-nightly.yml
vendored
@ -1,7 +1,11 @@
|
|||||||
name: Linux (x86_64) Nightly Build
|
name: Linux (x86_64) Nightly Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Allows manual triggering
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release_upload_url:
|
||||||
|
description: 'Release upload URL'
|
||||||
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@ -54,31 +58,28 @@ jobs:
|
|||||||
echo "Building Debian package for x86_64..."
|
echo "Building Debian package for x86_64..."
|
||||||
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles deb
|
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles deb
|
||||||
|
|
||||||
- name: Upload AppImage
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: linux-appimage
|
|
||||||
path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
|
||||||
|
|
||||||
- name: Upload Debian Package
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: linux-deb
|
|
||||||
path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
|
|
||||||
|
|
||||||
- name: Get version from package.json
|
- name: Get version from package.json
|
||||||
id: version
|
id: version
|
||||||
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Release
|
- name: Upload AppImage to Release
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event.inputs.release_upload_url != ''
|
||||||
uses: softprops/action-gh-release@v1
|
uses: actions/upload-release-asset@v1
|
||||||
with:
|
|
||||||
name: "Linux x86_64 Nightly Build v${{ steps.version.outputs.version }}"
|
|
||||||
tag_name: "linux-x86_64-nightly-${{ steps.version.outputs.version }}"
|
|
||||||
files: |
|
|
||||||
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
|
||||||
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
|
|
||||||
prerelease: false
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
|
asset_path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
||||||
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x86_64.AppImage
|
||||||
|
asset_content_type: application/x-executable
|
||||||
|
|
||||||
|
- name: Upload Debian Package to Release
|
||||||
|
if: github.event.inputs.release_upload_url != ''
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
|
asset_path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
|
||||||
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x86_64.deb
|
||||||
|
asset_content_type: application/vnd.debian.binary-package
|
51
.github/workflows/macos-nightly.yml
vendored
51
.github/workflows/macos-nightly.yml
vendored
@ -1,7 +1,11 @@
|
|||||||
name: MacOS (Intel/Apple Silicon) Nightly Build
|
name: MacOS (Intel/Apple Silicon) Nightly Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Allows manual triggering
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release_upload_url:
|
||||||
|
description: 'Release upload URL'
|
||||||
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@ -68,31 +72,28 @@ jobs:
|
|||||||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
|
|
||||||
- name: Upload Intel Build
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: macos-intel-build
|
|
||||||
path: src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/*.dmg
|
|
||||||
|
|
||||||
- name: Upload Apple Silicon Build
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: macos-apple-silicon-build
|
|
||||||
path: src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg
|
|
||||||
|
|
||||||
- name: Get version from package.json
|
- name: Get version from package.json
|
||||||
id: version
|
id: version
|
||||||
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Release
|
- name: Upload Intel Build to Release
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event.inputs.release_upload_url != ''
|
||||||
uses: softprops/action-gh-release@v1
|
uses: actions/upload-release-asset@v1
|
||||||
with:
|
|
||||||
name: "MacOS Nightly Build v${{ steps.version.outputs.version }}"
|
|
||||||
tag_name: "macos-nightly-${{ steps.version.outputs.version }}"
|
|
||||||
files: |
|
|
||||||
src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/*.dmg
|
|
||||||
src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg
|
|
||||||
prerelease: false
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
|
asset_path: src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/intel-*.dmg
|
||||||
|
asset_name: intel-NeoHtop_${{ steps.version.outputs.version }}_x64.dmg
|
||||||
|
asset_content_type: application/x-apple-diskimage
|
||||||
|
|
||||||
|
- name: Upload Silicon Build to Release
|
||||||
|
if: github.event.inputs.release_upload_url != ''
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
|
asset_path: src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/silicon-*.dmg
|
||||||
|
asset_name: silicon-NeoHtop_${{ steps.version.outputs.version }}_aarch64.dmg
|
||||||
|
asset_content_type: application/x-apple-diskimage
|
22
.github/workflows/test-release.yml
vendored
22
.github/workflows/test-release.yml
vendored
@ -4,31 +4,49 @@ on:
|
|||||||
workflow_dispatch: # Manual trigger
|
workflow_dispatch: # Manual trigger
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-builds:
|
create-draft:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get version from package.json
|
||||||
|
id: version
|
||||||
|
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Create Draft Release
|
||||||
|
id: create_release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
name: "NeoHtop v${{ steps.version.outputs.version }}"
|
||||||
|
tag_name: "v${{ steps.version.outputs.version }}"
|
||||||
|
draft: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
|
||||||
- name: Trigger MacOS Build
|
- name: Trigger MacOS Build
|
||||||
uses: benc-uk/workflow-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
workflow: macos-nightly.yml
|
workflow: macos-nightly.yml
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
|
inputs: '{"release_upload_url": "${{ steps.create_release.outputs.upload_url }}"}'
|
||||||
|
|
||||||
- name: Trigger Windows Build
|
- name: Trigger Windows Build
|
||||||
uses: benc-uk/workflow-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
workflow: windows-nightly.yml
|
workflow: windows-nightly.yml
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
|
inputs: '{"release_upload_url": "${{ steps.create_release.outputs.upload_url }}"}'
|
||||||
|
|
||||||
- name: Trigger Linux x86_64 Build
|
- name: Trigger Linux x86_64 Build
|
||||||
uses: benc-uk/workflow-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
workflow: linux-x86_64-nightly.yml
|
workflow: linux-x86_64-nightly.yml
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
|
inputs: '{"release_upload_url": "${{ steps.create_release.outputs.upload_url }}"}'
|
||||||
|
|
||||||
- name: Trigger Linux ARM64 Build
|
- name: Trigger Linux ARM64 Build
|
||||||
uses: benc-uk/workflow-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
workflow: linux-aarch64-nightly.yml
|
workflow: linux-aarch64-nightly.yml
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
|
inputs: '{"release_upload_url": "${{ steps.create_release.outputs.upload_url }}"}'
|
30
.github/workflows/windows-nightly.yml
vendored
30
.github/workflows/windows-nightly.yml
vendored
@ -1,7 +1,11 @@
|
|||||||
name: Windows (x86_64) Nightly Build
|
name: Windows (x86_64) Nightly Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Allows manual triggering
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release_upload_url:
|
||||||
|
description: 'Release upload URL'
|
||||||
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@ -41,24 +45,18 @@ jobs:
|
|||||||
echo "Building Windows executable..."
|
echo "Building Windows executable..."
|
||||||
npm run tauri build
|
npm run tauri build
|
||||||
|
|
||||||
- name: Upload Executable
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: windows-exe
|
|
||||||
path: src-tauri/target/release/*.exe
|
|
||||||
|
|
||||||
- name: Get version from package.json
|
- name: Get version from package.json
|
||||||
id: version
|
id: version
|
||||||
shell: bash # Force using bash shell
|
shell: bash # Force using bash shell
|
||||||
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Release
|
- name: Upload to Release
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event.inputs.release_upload_url != ''
|
||||||
uses: softprops/action-gh-release@v1
|
uses: actions/upload-release-asset@v1
|
||||||
with:
|
|
||||||
name: "Windows Nightly Build v${{ steps.version.outputs.version }}"
|
|
||||||
tag_name: "windows-nightly-${{ steps.version.outputs.version }}"
|
|
||||||
files: src-tauri/target/release/*.exe
|
|
||||||
prerelease: false
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.inputs.release_upload_url }}
|
||||||
|
asset_path: src-tauri/target/release/NeoHtop.exe
|
||||||
|
asset_name: NeoHtop_${{ steps.version.outputs.version }}_x64.exe
|
||||||
|
asset_content_type: application/vnd.microsoft.portable-executable
|
Loading…
x
Reference in New Issue
Block a user