Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 6526c55

Browse files
fix: more release updates
1 parent 3b8438c commit 6526c55

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

.github/workflows/build_for_pypi.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -65,34 +65,3 @@ jobs:
6565
name: cibw-wheels-${{ matrix.os }}
6666
path: ./wheelhouse/*.whl
6767

68-
publish_to_pypi:
69-
if: inputs.publish == true || false
70-
needs:
71-
- build_dist_for_pypi
72-
- build_src_for_pypi
73-
permissions:
74-
id-token: write # This is required for OIDC
75-
runs-on: ubuntu-latest
76-
environment:
77-
name: pypi
78-
url: https://pypi.org/p/codecov-cli
79-
steps:
80-
- name: Download artifacts
81-
uses: actions/download-artifact@v4
82-
with:
83-
path: dist/
84-
pattern: cibw-*
85-
- name: Display and move artifacts
86-
run: |
87-
ls -alrt */*/*
88-
mv */*/*/* dist/
89-
mv */*/* dist/
90-
echo "Moved files"
91-
ls -alrt */*
92-
echo "Deleting empty directories"
93-
find . -empty -type d -delete
94-
ls -alrt */*
95-
- name: Publish package to PyPi
96-
uses: pypa/gh-action-pypi-publish@release/v1
97-
with:
98-
verbose: true

.github/workflows/release_flow.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- created
1010

1111
jobs:
12-
build_and_publish_to_pypi:
12+
build_for_pypi:
1313
permissions:
1414
id-token: write # This is required for requesting the JWT
1515
contents: read # This is required for actions/checkout
@@ -25,9 +25,40 @@ jobs:
2525
release: true
2626
secrets: inherit
2727

28+
publish_to_pypi:
29+
if: inputs.publish == true || false
30+
needs:
31+
- build_for_pypi
32+
permissions:
33+
id-token: write # This is required for OIDC
34+
runs-on: ubuntu-latest
35+
environment:
36+
name: pypi
37+
url: https://pypi.org/p/codecov-cli
38+
steps:
39+
- name: Download artifacts
40+
uses: actions/download-artifact@v4
41+
with:
42+
path: dist/
43+
pattern: cibw-*
44+
- name: Display and move artifacts
45+
run: |
46+
ls -alrt */*/*
47+
mv */*/*/* dist/
48+
mv */*/* dist/
49+
echo "Moved files"
50+
ls -alrt */*
51+
echo "Deleting empty directories"
52+
find . -empty -type d -delete
53+
ls -alrt */*
54+
- name: Publish package to PyPi
55+
uses: pypa/gh-action-pypi-publish@release/v1
56+
with:
57+
verbose: true
58+
2859
publish_release:
2960
name: Publish release
30-
needs: [buildassets, build_and_publish_to_pypi]
61+
needs: [buildassets, publish_to_pypi]
3162
runs-on: ubuntu-latest
3263
permissions:
3364
contents: 'read'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ license = {file = "LICENSE"}
2626
name = "codecov-cli"
2727
readme = "README.md"
2828
requires-python = ">= 3.9"
29-
version = "10.1.0"
29+
version = "10.0.1"
3030

3131
[project.scripts]
3232
codecov = "codecov_cli.main:run"

0 commit comments

Comments
 (0)