Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .github/workflows/build_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
name: Build Compiled Assets

on:
pull_request:
branches:
- main
push:
# Pattern matched against refs/tags
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_call:
inputs:
release:
type: boolean
default: false
description: "Attach artifacts to a release"

jobs:
build_assets:
Expand Down Expand Up @@ -69,12 +68,12 @@ jobs:
run: ${{matrix.CMD_BUILD}}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
if: github.ref_type == 'tag'
if: inputs.release == false
with:
name: ${{ matrix.OUT_FILE_NAME }}
path: ./dist/${{ matrix.OUT_FILE_NAME }}
- name: Upload Release Asset
if: github.ref_type == 'tag'
if: inputs.release == true
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
Expand Down Expand Up @@ -119,12 +118,12 @@ jobs:
./scripts/build_${{ matrix.distro_name }}_arm.sh ${{ matrix.distro_name }}_${{ matrix.arch }}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
if: github.ref_type == 'tag'
if: inputs.release == false
with:
name: codecovcli_${{ matrix.distro_name }}_${{ matrix.arch }}
path: ./dist/codecovcli_${{ matrix.distro_name }}_${{ matrix.arch }}
- name: Upload Release Asset
if: github.ref_type == 'tag'
if: inputs.release == true
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/build_for_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ name: Build and Optionally Publish to PyPi

on:
pull_request:
branches:
- main
push:
# Pattern matched against refs/tags
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches: main
workflow_call:
inputs:
publish:
type: boolean
default: false
description: "Publish to PyPi"

jobs:
build_src_for_pypi:
Expand Down Expand Up @@ -64,9 +65,8 @@ jobs:
name: cibw-wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl


publish_to_pypi:
if: github.ref_type == 'tag'
if: inputs.publish == true || false
needs:
- build_dist_for_pypi
- build_src_for_pypi
Expand All @@ -80,7 +80,11 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist/
pattern: cibw-*
- name: Display artifacts
run: |
ls -alrt */*/*
- name: Publish package to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down