Skip to content

Commit 1f46a8f

Browse files
committed
ci: only trigger pypi publish when new version is released
1 parent 128084c commit 1f46a8f

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,13 @@ jobs:
8585
tag: ${{ steps.semantic.outputs.tag }}
8686

8787
- name: Build distribution
88+
if: needs.release.outputs.released == 'true'
8889
run: |
8990
pip install build==1.3.0
9091
python -m build
9192
92-
- name: Generate Artifact Attestation
93-
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
94-
with:
95-
subject-name: waka-leaderboards-python-dist
96-
subject-path: dist/*
97-
push-to-registry: true
98-
9993
- name: Publish to PyPI
94+
if: needs.release.outputs.released == 'true'
10095
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
10196
with:
10297
packages-dir: dist
@@ -143,7 +138,7 @@ jobs:
143138
if: github.event_name != 'pull_request'
144139
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
145140
with:
146-
cosign-release: "v3.0.1"
141+
cosign-release: "v2.6.0"
147142

148143
- name: Setup Docker Buildx
149144
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[![CodeQL & Pylint](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/codeql.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/codeql.yml)
1111
[![Bandit](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/bandit.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/bandit.yml)
1212
[![Codecov](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/coverage.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/coverage.yml)
13-
[![Scorecard Security](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/scorecard.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/scorecard.yml)
13+
[![Scorecard Security](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/scorecards.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/scorecards.yml)
1414
[![Dependency Review](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/dependency-review.yml)
1515

1616
#### Code Quality & Coverage

0 commit comments

Comments
 (0)