Skip to content

Commit

Permalink
rm extraneous
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chen_data committed Oct 19, 2024
1 parent d747811 commit f0b8d3b
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,8 @@ on:
workflow_dispatch:

jobs:
code-quality:
uses: ./.github/workflows/code-quality.yaml

pypi-packaging:
name: Build and Publish llm-foundry PyPI Package
needs:
- code-quality
runs-on: linux-ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.9"

- name: Build source and wheel distributions
run: |
if [[ "${{ github.ref }}" =~ refs\/tags\/v ]]; then
PYPI_PACKAGE_NAME="llm-foundry"
else
PYPI_PACKAGE_NAME="llm-foundry-test-$(date +%Y%m%d%H%M%S)"
fi
python -m pip install --upgrade build twine
python -m build
twine check --strict dist/*
- name: Publish 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: contains(github.ref, 'refs/tags/v')
with:
user: __token__
password: ${{ secrets.PROD_PYPI_API_TOKEN }}

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: contains(github.ref, 'refs/heads/') || contains(github.ref, 'refs/pull/')
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

build-docker:
name: Build llm-foundry Release Docker Image
needs:
- code-quality
runs-on: mosaic-8wide
if: github.repository_owner == 'mosaicml'
steps:
Expand Down

0 comments on commit f0b8d3b

Please sign in to comment.