Skip to content

Commit 94ba9df

Browse files
committed
add mac back in
1 parent 18583d3 commit 94ba9df

File tree

1 file changed

+83
-83
lines changed

1 file changed

+83
-83
lines changed

.github/workflows/publish.yml

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [ubuntu-latest, ubuntu-24.04-arm, windows-2019] #, macos-latest]
14+
os: [ubuntu-latest, ubuntu-24.04-arm, windows-2019, macos-latest]
1515
accelerator: [cpu, cu118, cu126, cu128]
1616
exclude:
1717
- os: ubuntu-24.04-arm
@@ -75,85 +75,85 @@ jobs:
7575
name: ${{ matrix.accelerator }}-cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
7676
path: ./wheelhouse/*.whl
7777

78-
# publish-to-accelera-pypi:
79-
# name: >-
80-
# Publish Python 🐍 distribution 📦 to Acellera PyPI
81-
# needs:
82-
# - build
83-
# runs-on: ubuntu-latest
84-
# permissions: # Needed for GCP authentication
85-
# contents: "read"
86-
# id-token: "write"
87-
# strategy:
88-
# fail-fast: false
89-
# matrix:
90-
# accelerator: [cpu, cu118, cu126, cu128]
91-
92-
# steps:
93-
# - uses: actions/checkout@v4 # Needed for GCP authentication for some reason
94-
95-
# - name: Set up Cloud SDK
96-
# uses: google-github-actions/auth@v2
97-
# with:
98-
# workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
99-
# service_account: ${{ secrets.GCP_PYPI_SERVICE_ACCOUNT }}
100-
101-
# - name: Download all the dists
102-
# uses: actions/download-artifact@v4
103-
# with:
104-
# pattern: "${{ matrix.accelerator }}-cibw-wheels*"
105-
# path: dist/
106-
# merge-multiple: true
107-
108-
# - name: Publish distribution 📦 to Acellera PyPI
109-
# run: |
110-
# pip install build twine keyring keyrings.google-artifactregistry-auth
111-
# pip install -U packaging
112-
# twine upload --repository-url https://us-central1-python.pkg.dev/pypi-packages-455608/${{ matrix.accelerator }} dist/* --verbose --skip-existing
113-
114-
# publish-to-official-pypi:
115-
# name: >-
116-
# Publish Python 🐍 distribution 📦 to PyPI
117-
# needs:
118-
# - build
119-
# runs-on: ubuntu-latest
120-
# environment:
121-
# name: pypi
122-
# url: https://pypi.org/p/torchmd-net
123-
# permissions:
124-
# id-token: write # IMPORTANT: mandatory for trusted publishing
125-
126-
# steps:
127-
# - name: Download all the dists
128-
# uses: actions/download-artifact@v4
129-
# with:
130-
# pattern: "cu128-cibw-wheels*"
131-
# path: dist/
132-
# merge-multiple: true
133-
134-
# - name: Publish distribution 📦 to PyPI
135-
# uses: pypa/gh-action-pypi-publish@release/v1
136-
# with:
137-
# password: ${{ secrets.TMDNET_PYPI_API_TOKEN }}
138-
# skip_existing: true
139-
140-
# github-release:
141-
# name: >-
142-
# Create GitHub Release
143-
# needs:
144-
# - build
145-
# runs-on: ubuntu-latest
146-
147-
# permissions:
148-
# contents: write # IMPORTANT: mandatory for making GitHub Releases
149-
# id-token: write # IMPORTANT: mandatory for sigstore
150-
151-
# steps:
152-
# - name: Create GitHub Release
153-
# env:
154-
# GITHUB_TOKEN: ${{ github.token }}
155-
# run: >-
156-
# gh release create
157-
# "$GITHUB_REF_NAME"
158-
# --repo "$GITHUB_REPOSITORY"
159-
# --notes ""
78+
publish-to-accelera-pypi:
79+
name: >-
80+
Publish Python 🐍 distribution 📦 to Acellera PyPI
81+
needs:
82+
- build
83+
runs-on: ubuntu-latest
84+
permissions: # Needed for GCP authentication
85+
contents: "read"
86+
id-token: "write"
87+
strategy:
88+
fail-fast: false
89+
matrix:
90+
accelerator: [cpu, cu118, cu126, cu128]
91+
92+
steps:
93+
- uses: actions/checkout@v4 # Needed for GCP authentication for some reason
94+
95+
- name: Set up Cloud SDK
96+
uses: google-github-actions/auth@v2
97+
with:
98+
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
99+
service_account: ${{ secrets.GCP_PYPI_SERVICE_ACCOUNT }}
100+
101+
- name: Download all the dists
102+
uses: actions/download-artifact@v4
103+
with:
104+
pattern: "${{ matrix.accelerator }}-cibw-wheels*"
105+
path: dist/
106+
merge-multiple: true
107+
108+
- name: Publish distribution 📦 to Acellera PyPI
109+
run: |
110+
pip install build twine keyring keyrings.google-artifactregistry-auth
111+
pip install -U packaging
112+
twine upload --repository-url https://us-central1-python.pkg.dev/pypi-packages-455608/${{ matrix.accelerator }} dist/* --verbose --skip-existing
113+
114+
publish-to-official-pypi:
115+
name: >-
116+
Publish Python 🐍 distribution 📦 to PyPI
117+
needs:
118+
- build
119+
runs-on: ubuntu-latest
120+
environment:
121+
name: pypi
122+
url: https://pypi.org/p/torchmd-net
123+
permissions:
124+
id-token: write # IMPORTANT: mandatory for trusted publishing
125+
126+
steps:
127+
- name: Download all the dists
128+
uses: actions/download-artifact@v4
129+
with:
130+
pattern: "cu128-cibw-wheels*"
131+
path: dist/
132+
merge-multiple: true
133+
134+
- name: Publish distribution 📦 to PyPI
135+
uses: pypa/gh-action-pypi-publish@release/v1
136+
with:
137+
password: ${{ secrets.TMDNET_PYPI_API_TOKEN }}
138+
skip_existing: true
139+
140+
github-release:
141+
name: >-
142+
Create GitHub Release
143+
needs:
144+
- build
145+
runs-on: ubuntu-latest
146+
147+
permissions:
148+
contents: write # IMPORTANT: mandatory for making GitHub Releases
149+
id-token: write # IMPORTANT: mandatory for sigstore
150+
151+
steps:
152+
- name: Create GitHub Release
153+
env:
154+
GITHUB_TOKEN: ${{ github.token }}
155+
run: >-
156+
gh release create
157+
"$GITHUB_REF_NAME"
158+
--repo "$GITHUB_REPOSITORY"
159+
--notes ""

0 commit comments

Comments
 (0)