Skip to content

Commit

Permalink
chore: publish to pypi after release (#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang authored Jan 9, 2024
1 parent 046c381 commit 6c64bea
Showing 1 changed file with 40 additions and 14 deletions.
54 changes: 40 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,47 @@
on:
push:
branches:
- main
push:
branches:
- main

permissions:
contents: write
pull-requests: write
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: google-github-actions/release-please-action@v3
with:
release-type: python
package-name: arize-phoenix
create-release:
name: Create release
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release-please
with:
release-type: python
package-name: arize-phoenix

publish-to-pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
needs: create-release
if: ${{ needs.create-release.outputs.release_created }}
environment:
name: pypi
url: https://pypi.org/p/arize-phoenix
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Build frontend
run: cd app && rm -rf node_modules && npm install && npm run build
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Python utilities
run: python -m pip install hatch check_wheel_contents twine
- name: Build distribution
run: rm -rf dist && hatch build
- name: Check wheel contents
run: check-wheel-contents dist/*.whl
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 6c64bea

Please sign in to comment.