diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8b37a42..3a17a6e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -35,6 +35,9 @@ jobs: permissions: id-token: write contents: write + environment: + name: pypi + url: https://pypi.org/p/vertex-deployer steps: - uses: actions/checkout@v4 @@ -48,8 +51,14 @@ jobs: with: github_token: ${{ secrets.RELEASE_ACCESS_TOKEN }} + # Publish to Pypi + - name: Publish package distributions to PyPI + if: steps.python-semantic-release.outputs.released == 'true' + uses: pypa/gh-action-pypi-publish@release/v1 + + # Publish to Google Artifact Registry - name: 'Authenticate to Google Cloud' - if: ${{ steps.python-semantic-release.outputs.released == 'true' }} + if: steps.python-semantic-release.outputs.released == 'true' uses: 'google-github-actions/auth@v2' with: token_format: 'access_token' @@ -57,11 +66,11 @@ jobs: service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}' # e.g. - my-service-account@my-project.iam.gserviceaccount.com - name: Install twine - if: ${{ steps.python-semantic-release.outputs.released == 'true' }} + if: steps.python-semantic-release.outputs.released == 'true' run: pip install twine keyrings.google-artifactregistry-auth - name: Upload dist to Google Artifact Registry - if: ${{ steps.python-semantic-release.outputs.released == 'true' }} + if: steps.python-semantic-release.outputs.released == 'true' run: | python3 -m twine upload \ --repository-url https://europe-west1-python.pkg.dev/data-sandbox-fr/artefactory \ diff --git a/pyproject.toml b/pyproject.toml index 22ad029..78a3428 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,16 @@ [tool.poetry] name = "vertex-deployer" version = "0.4.3" -description = "" -authors = ["julesbertrand "] +description = "Check, compile, upload, run, and schedule Kubeflow Pipelines on GCP Vertex AI in a standardized manner." +authors = [ + "artefactory ", + "julesbertrand " +] +license = "Apache-2.0" +homepage = "https://github.com/artefactory/vertex-pipelines-deployer" +documentation = "https://artefactory.github.io/vertex-pipelines-deployer/" +repository = "https://github.com/artefactory/vertex-pipelines-deployer" +keywords = ["kubeflow", "vertexai", "aiplatform", "gcp", "mlops", "deployer", "pipeline"] readme = "README.md" packages = [{include = "deployer"}]