forked from lthn/blockchain
Refactor artifact upload in build workflows
Replaces multiple uses of actions/upload-artifact with a single custom upload-artifacts action in Linux, macOS, and Windows build workflows. This change simplifies artifact handling and standardizes the upload process across platforms.
This commit is contained in:
parent
36c38ab9c8
commit
261b300f4f
4 changed files with 24 additions and 56 deletions
16
.github/workflows/build-linux.yml
vendored
16
.github/workflows/build-linux.yml
vendored
|
|
@ -33,14 +33,10 @@ jobs:
|
|||
- name: Compile Release
|
||||
run: make release TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- name: CLI Artifacts
|
||||
uses: ./.github/actions/upload-artifacts
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.deb
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.tar.xz
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.zip
|
||||
chain-network: ${{ inputs.chain-network }}
|
||||
assets: lethean-*
|
||||
asset-type: 'cli'
|
||||
asset-directory: ${{ github.workspace }}/build/release/packages
|
||||
|
|
|
|||
23
.github/workflows/build-macos-arm64.yml
vendored
23
.github/workflows/build-macos-arm64.yml
vendored
|
|
@ -34,22 +34,11 @@ jobs:
|
|||
- name: Compile Release
|
||||
run: make release TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.pkg
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- name: CLI Artifacts
|
||||
uses: ./.github/actions/upload-artifacts
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.tar.xz
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.zip
|
||||
|
||||
# - name: CLI Artifacts
|
||||
# uses: ./.github/actions/upload-artifacts
|
||||
# with:
|
||||
# chain-network: ${{ inputs.chain-network }}
|
||||
# assets: lethean-*
|
||||
# asset-type: 'cli'
|
||||
# asset-directory: ${{ github.workspace }}/build/apple-clang-armv8/src
|
||||
chain-network: ${{ inputs.chain-network }}
|
||||
assets: lethean-*
|
||||
asset-type: 'cli'
|
||||
asset-directory: ${{ github.workspace }}/build/release/packages
|
||||
|
|
|
|||
17
.github/workflows/build-macos-intel.yml
vendored
17
.github/workflows/build-macos-intel.yml
vendored
|
|
@ -30,15 +30,10 @@ jobs:
|
|||
- name: Compile Release
|
||||
run: make release TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- name: CLI Artifacts
|
||||
uses: ./.github/actions/upload-artifacts
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.pkg
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.tar.xz
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.zip
|
||||
|
||||
chain-network: ${{ inputs.chain-network }}
|
||||
assets: lethean-*
|
||||
asset-type: 'cli'
|
||||
asset-directory: ${{ github.workspace }}/build/release/packages
|
||||
|
|
|
|||
24
.github/workflows/build-windows.yml
vendored
24
.github/workflows/build-windows.yml
vendored
|
|
@ -30,22 +30,10 @@ jobs:
|
|||
- name: Compile Release
|
||||
run: make release TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- name: CLI Artifacts
|
||||
uses: ./.github/actions/upload-artifacts
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.msi
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.tar.xz
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: ${{ github.workspace }}/build/release/packages/lethean-*.zip
|
||||
|
||||
# - name: CLI Artifacts
|
||||
# uses: ./.github/actions/upload-artifacts
|
||||
# with:
|
||||
# chain-network: ${{ inputs.chain-network }}
|
||||
# assets: lethean-*
|
||||
# asset-type: 'cli'
|
||||
# asset-directory: ${{ github.workspace }}/build/release/packages
|
||||
chain-network: ${{ inputs.chain-network }}
|
||||
assets: lethean-*
|
||||
asset-type: 'cli'
|
||||
asset-directory: ${{ github.workspace }}/build/release/packages
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue