Skip to content

Commit 5a50e91

Browse files
committed
LGTM?
1 parent 3bed4bc commit 5a50e91

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

.github/workflows/maturin.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -71,44 +71,44 @@ jobs:
7171
name: wheels-macos-${{ matrix.platform.target }}
7272
path: dist
7373

74-
# sdist:
75-
# runs-on: ubuntu-latest
76-
# steps:
77-
# - uses: actions/checkout@v4
78-
# - name: Build sdist
79-
# uses: PyO3/maturin-action@v1
80-
# with:
81-
# command: sdist
82-
# args: --out dist
83-
# - name: Upload sdist
84-
# uses: actions/upload-artifact@v4
85-
# with:
86-
# name: wheels-sdist
87-
# path: dist
74+
sdist:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v4
78+
- name: Build sdist
79+
uses: PyO3/maturin-action@v1
80+
with:
81+
command: sdist
82+
args: --out dist
83+
- name: Upload sdist
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: wheels-sdist
87+
path: dist
8888

89-
# release:
90-
# name: Release
91-
# runs-on: ubuntu-latest
92-
# if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
93-
# needs: [linux, musllinux, windows, macos, sdist]
94-
# permissions:
95-
# # Use to sign the release artifacts
96-
# id-token: write
97-
# # Used to upload release artifacts
98-
# contents: write
99-
# # Used to generate artifact attestation
100-
# attestations: write
101-
# steps:
102-
# - uses: actions/download-artifact@v4
103-
# - name: Generate artifact attestation
104-
# uses: actions/attest-build-provenance@v1
105-
# with:
106-
# subject-path: 'wheels-*/*'
107-
# - name: Publish to PyPI
108-
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
109-
# uses: PyO3/maturin-action@v1
110-
# env:
111-
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
112-
# with:
113-
# command: upload
114-
# args: --non-interactive --skip-existing wheels-*/*
89+
release:
90+
name: Release
91+
runs-on: ubuntu-latest
92+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
93+
needs: [linux, musllinux, windows, macos, sdist]
94+
permissions:
95+
# Use to sign the release artifacts
96+
id-token: write
97+
# Used to upload release artifacts
98+
contents: write
99+
# Used to generate artifact attestation
100+
attestations: write
101+
steps:
102+
- uses: actions/download-artifact@v4
103+
- name: Generate artifact attestation
104+
uses: actions/attest-build-provenance@v1
105+
with:
106+
subject-path: 'wheels-*/*'
107+
- name: Publish to PyPI
108+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
109+
uses: PyO3/maturin-action@v1
110+
env:
111+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
112+
with:
113+
command: upload
114+
args: --non-interactive --skip-existing wheels-*/*

0 commit comments

Comments
 (0)