Skip to content

Commit

Permalink
WIP: update upload / download action filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-ward committed Jan 23, 2024
1 parent 928b2e4 commit d4cd6c5
Showing 1 changed file with 41 additions and 34 deletions.
75 changes: 41 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: pyogrio-wheel
path: ./wheelhouse/*.whl
compression: 0

build-wheels-mac-win:
name: Build wheels on ${{ matrix.os }} (${{ matrix.arch }})
Expand Down Expand Up @@ -190,6 +192,7 @@ jobs:
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: pyogrio-vcpkg-logs-${{ matrix.triplet }}
path: ${{ matrix.vcpkg_logs }}

- name: Build wheels
Expand All @@ -199,9 +202,11 @@ jobs:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
CIBW_ARCHS: ${{ matrix.arch }}

- uses: actions/upload-artifact@v
- uses: actions/upload-artifact@v4
with:
name: pyogrio-wheel
path: ./wheelhouse/*.whl
compression: 0

test-wheels:
name: Test wheels on ${{ matrix.os }} (Python ${{ matrix.python-version }})
Expand All @@ -228,7 +233,9 @@ jobs:
- name: Download wheels from artifacts
uses: actions/download-artifact@v4
with:
name: pyogrio-wheel
path: wheelhouse
merge-multiple: true

- name: Install dependencies and pyogrio wheel
shell: bash
Expand All @@ -247,36 +254,36 @@ jobs:
python -c "import pyogrio; print(f'GDAL version: {pyogrio.__gdal_version__}\nGEOS version: {pyogrio.__gdal_geos_version__}')"
python -m pytest --pyargs pyogrio.tests -v
publish:
name: Publish pyogrio to GitHub / PyPI
needs: [test-sdist, test-wheels]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pyogrio
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing to PyPI

# release on every tag
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')

steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist

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

- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
name: ${{ github.ref }}
draft: false
prerelease: false
files: dist/*.tar.gz
# publish:
# name: Publish pyogrio to GitHub / PyPI
# needs: [test-sdist, test-wheels]
# runs-on: ubuntu-latest
# environment:
# name: pypi
# url: https://pypi.org/p/pyogrio
# permissions:
# id-token: write # IMPORTANT: this permission is mandatory for trusted publishing to PyPI

# # release on every tag
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')

# steps:
# - uses: actions/download-artifact@v4
# with:
# name: artifact
# path: dist

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

# - name: Create GitHub Release
# id: create_release
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
# with:
# tag_name: ${{ github.ref }}
# name: ${{ github.ref }}
# draft: false
# prerelease: false
# files: dist/*.tar.gz

0 comments on commit d4cd6c5

Please sign in to comment.