Skip to content
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
3 changes: 2 additions & 1 deletion .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ targets:
- algorithm: sha256
includeNames: /^(sentry-prevent-|sentry_prevent_|codecov|codecov_)cli.*/i

# - name: pypi
- name: pypi
includeNames: /sentry_prevent_cli-*/i
78 changes: 35 additions & 43 deletions .github/workflows/release-codecov-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,42 @@ permissions:
contents: read

jobs:
test:
publish_to_pypi:
permissions:
id-token: write # This is required for OIDC
runs-on: ubuntu-latest
steps:
- run: echo "hi from build and publish codecov-cli"
- name: Download pypi release assets
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
with:
tag: ${{ github.ref_name }}
fileName: codecov_cli-*
out-file-path: codecov-cli/dist

# publish_to_pypi:
# permissions:
# id-token: write # This is required for OIDC
# runs-on: ubuntu-latest
# environment:
# name: pypi
# url: https://pypi.org/p/codecov-cli
# steps:
# - name: Download build artifacts
# uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
# with:
# branch: release/${{ github.ref }}
# name: codecov-cli_wheel
# path: codecov-cli/dist
#
# - name: Publish package to PyPi
# uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
# with:
# verbose: true
# packages-dir: codecov-cli/dist
- name: Publish package to PyPi
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
with:
verbose: true
packages-dir: codecov-cli/dist

# publish_release:
# name: Publish release
# runs-on: ubuntu-latest
# permissions:
# contents: "read"
# id-token: "write"
# steps:
# - id: "auth"
# name: "Authenticate to Google Cloud"
# uses: "google-github-actions/auth@v1.0.0"
# with:
# create_credentials_file: "true"
# workload_identity_provider: ${{ secrets.CODECOV_GCP_WIDP }}
# service_account: ${{ secrets.CODECOV_GCP_WIDSA }}
#
# # Publish the release tag to a Pub/Sub topic
# - name: Publish a message to a Pub/Sub topic
# env:
# CLOUDSDK_CORE_PROJECT: ${{ secrets.GCLOUD_UPLOADER_PROJECT_ID }}
# run: |
# gcloud pubsub topics publish ${{ secrets.GCLOUD_UPLOADER_PUBSUB_TOPIC }} --message '{"release":"'"${{ github.ref_name }}"'", "latest":true}'
publish_release:
name: Publish release
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
steps:
- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v1.0.0"
with:
create_credentials_file: "true"
workload_identity_provider: ${{ secrets.CODECOV_GCP_WIDP }}
service_account: ${{ secrets.CODECOV_GCP_WIDSA }}

# Publish the release tag to a Pub/Sub topic
- name: Publish a message to a Pub/Sub topic
env:
CLOUDSDK_CORE_PROJECT: ${{ secrets.GCLOUD_UPLOADER_PROJECT_ID }}
run: |
gcloud pubsub topics publish ${{ secrets.GCLOUD_UPLOADER_PUBSUB_TOPIC }} --message '{"release":"'"${{ github.ref_name }}"'", "latest":true}'
Loading