Skip to content

Commit

Permalink
configure for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
xoudini committed Dec 23, 2024
1 parent 38c5404 commit be25702
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ on:
push:
branches:
- master
tags:
- "v*"
pull_request:
branches:
- master

permissions:
contents: read

env:
PYICU_VERSION: "2.14"
LIBICU_VERSION: "76"
Expand Down Expand Up @@ -87,7 +92,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: linux-${{ matrix.cpy }}-${{ matrix.platform }}_${{ matrix.arch }}
name: cibw-linux-${{ matrix.cpy }}-${{ matrix.platform }}_${{ matrix.arch }}
path: ./wheelhouse/*.whl

macos:
Expand Down Expand Up @@ -147,5 +152,29 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: macos-${{ matrix.macos }}-${{ matrix.cpy }}-macosx_${{ matrix.arch }}
name: cibw-macos-${{ matrix.macos }}-${{ matrix.cpy }}-macosx_${{ matrix.arch }}
path: ./wheelhouse/*.whl

publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
name: Publish wheels
runs-on: ubuntu-latest
needs:
- linux
- macos
environment:
name: release
url: https://pypi.org/project/pyicu-wheels

permissions:
id-token: write

steps:
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
merge-multiple: true

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit be25702

Please sign in to comment.