1
0
Fork 0
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:
Snider 2025-09-28 16:48:25 +01:00
parent 36c38ab9c8
commit 261b300f4f
4 changed files with 24 additions and 56 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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