Skip to content

Commit cce037e

Browse files
fix: update release (#627)
* fix: update release * Update .github/workflows/build_for_pypi.yml
1 parent b75a4f9 commit cce037e

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/build_for_pypi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ jobs:
8282
with:
8383
path: dist/
8484
pattern: cibw-*
85-
- name: Display artifacts
85+
- name: Display and move artifacts
8686
run: |
8787
ls -alrt */*/*
88+
mv */*/* dist/
89+
ls -alrt dist/
8890
- name: Publish package to PyPi
8991
uses: pypa/gh-action-pypi-publish@release/v1
9092
with:

.github/workflows/create_release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ jobs:
1818
- id: get-release-vars
1919
name: Configure Release Vars
2020
run: |
21-
echo release_version=v$(grep -E "version = \"[0-9]+\.[0-9]+\.[0-9]+\"" pyproject.toml | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+") >> "$GITHUB_OUTPUT"
22-
echo previous_version=$(git tag --sort=-creatordate | head -n 2 | tail -n 1) >> "$GITHUB_OUTPUT"
21+
release_version==v$(grep -E "version = \"[0-9]+\.[0-9]+\.[0-9]+\"" pyproject.toml | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+")
22+
previous_version=$(git tag --sort=-creatordate | head -n 2 | tail -n 1)
23+
echo "release_version=$release_version"
24+
echo "previous_version=$previous_version"
25+
26+
echo "release_version=$release_version" >> "$GITHUB_OUTPUT"
27+
echo "previous_version=$previous_version" >> "$GITHUB_OUTPUT"
2328
2429
- name: Create GitHub Release
2530
env:

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.1"
29+
version = "10.1.1"
3030

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

0 commit comments

Comments
 (0)