Skip to content

Commit

Permalink
RELEASE Github action updates to current supported versions
Browse files Browse the repository at this point in the history
Also makes the publish-to-pypi only happen when running on the master branch
  • Loading branch information
mcfletch committed Dec 31, 2024
1 parent 052d740 commit 5d07dc2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/accelerate-manylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
name: Build source tarballs and root wheels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install build
Expand All @@ -38,13 +38,13 @@ jobs:
accelerate
- name: Save Core Distributions
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: core
path: dist/*

- name: Save Accelerate Distributions
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: accel
path: accelerate/dist/*
Expand All @@ -60,9 +60,9 @@ jobs:
- macOS-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Set up QEMU
Expand Down Expand Up @@ -92,14 +92,15 @@ jobs:
CIBW_SKIP: "pp*"

- name: Save wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: accel-binary
path: accelerate/dist/*.whl

pypi-publish-accel:
name: Upload Accelerate ${{matrix.repo}}
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
needs:
- wheels
- tarballs
Expand Down Expand Up @@ -133,6 +134,7 @@ jobs:
pypi-publish-core:
name: Upload Core to ${{matrix.repo}}
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
needs:
- wheels
- tarballs
Expand All @@ -150,6 +152,7 @@ jobs:

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
id: upload
with:
username: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand Down

0 comments on commit 5d07dc2

Please sign in to comment.