Skip to content

fix: test pypi test #13

fix: test pypi test

fix: test pypi test #13

Workflow file for this run

# This workflow triggers the CI, updates the version, and uploads the release to GitHub and
# Google Artifact Registry when a push is made to either the 'main' or 'develop' branch.
#
# Workflow Steps:
#
# 1. Ci is triggered using the CI workflow defined in .github/workflows/ci.yaml
# 2. If it succeeds, the version is updated using Python Semantic Release
# 3. The release is uploaded to GitHub (same step and GitHub action)
# 5. Authentication to Google Cloud is achieved using Workload Identity Federation
# 6. The release is uploaded to Google Artifact Registry
#
# For more details on setting up Workload Identity Federation for GitHub,
# visit https://github.com/google-github-actions/auth#setting-up-workload-identity-federation
# WIF service account must have roles/artifactregistry.write access to the Artifact Registry repository
name: CI and Release on main
on:
push:
branches:
- main
- fea/pypy_release
jobs:
ci:
name: CI
uses: ./.github/workflows/ci.yaml
release:
name: Release
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
needs: ci
permissions:
id-token: write
contents: write
environment:
name: pypi
url: https://test.pypi.org/p/bytetracking
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GH_TOKEN }}
Publish to Pypi

Check failure on line 54 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

You have an error in your yaml syntax on line 54
- name: Publish package distributions to PyPI
if: steps.python-semantic-release.outputs.released == 'true'
uses: pypa/gh-action-pypi-publish@release/v1