diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6102506..8252562 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,6 +2,8 @@ name: Release on: push: + branches: + - 'feat/generalize-wheel-compatibility-tags' tags: - 'v[0-9]+.[0-9]+.[0-9]+' # Only run for full release tags @@ -26,10 +28,8 @@ jobs: fail-fast: false matrix: os: [ "windows-latest", "ubuntu-latest", "macos-latest" ] - python-version: [ "3.9", "3.10", "3.11" ] include: - os: ubuntu-latest - python-version: '3.11' sdist: true steps: - uses: actions/checkout@v3 @@ -37,13 +37,13 @@ jobs: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: "3.11" - name: Set up Fortran uses: awvwgk/setup-fortran@v1 - name: Install build frontend - run: python -m pip install --upgrade pip build + run: python -m pip install --upgrade pip build wheel - name: Retrieve 6S source archives uses: actions/download-artifact@v3 @@ -56,6 +56,9 @@ jobs: env: SIXS_ARCHIVE_DIR: 6s-archives + - name: Configure wheel platform compatibility tags + run: python3 -m wheel --remove --python-tag=py3 --abi-tag=none ./dist/*.whl + - name: Build sdist if: ${{ matrix.sdist }} run: python -I -m build --sdist @@ -69,7 +72,7 @@ jobs: publish: needs: build -# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') runs-on: ubuntu-latest permissions: id-token: write