-
Notifications
You must be signed in to change notification settings - Fork 23
ci: Update setup for publishing #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c180ead
856dd1d
05a1a54
28e6bab
b04ae8f
c43d2a0
a83ec20
b9f1b04
839ce33
1c97a07
5061646
0466c4a
311e45d
14ba1d7
0650e15
664f63f
6026f23
8b16c19
0fb4f45
350f626
6ae6e38
13b9b1d
0ac8397
d2bd726
eff33e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -359,21 +359,28 @@ jobs: | |
|
|
||
| release: | ||
| name: Release | ||
|
|
||
| if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' | ||
|
|
||
| runs-on: ubuntu-latest | ||
| environment: Publish | ||
| environment: pypipublish | ||
| needs: [linux, windows, macos_x86, macos_aarch64, sdist] | ||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
gpeacock marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/download-artifact@v4 | ||
| with: | ||
| pattern: wheels-* | ||
| name: wheels | ||
| path: dist | ||
| merge-multiple: true | ||
| - name: List contents of dist directory | ||
| run: ls -la dist/ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably don't need this now that it works, but I think I'd leave it in anyway, just to be sure
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good. We can remove it in subsequent PRs. And you're right, it's nice to have here to see what goes in. |
||
| - name: Publish to PyPI | ||
| uses: PyO3/maturin-action@v1 | ||
| env: | ||
| MATURIN_PYPI_TOKEN: ${{ secrets.caipypi }} | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| command: upload | ||
| args: --non-interactive --skip-existing * | ||
| packages-dir: dist | ||
| # verbose: true | ||
| # print-hash: true | ||
| # Uncomment below for test runs, otherwise fails on existing packages being reuploaded | ||
| skip-existing: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [package] | ||
| name = "c2pa-python" | ||
| version = "0.8.2" | ||
| version = "0.9.0" | ||
| edition = "2021" | ||
| authors = ["Gavin Peacock <[email protected]"] | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.