Skip to content

Commit

Permalink
Set up the action to publish a singular release.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 14, 2023
1 parent 5d0f9b2 commit d48ac58
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions .github/workflows/build-libraries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@ on:
pull_request:

jobs:
build_linux_wheels:
name: Build Linux wheels
#if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
build_manylinux_x86_64:
name: Build linux x86-64
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
strategy:
matrix:
include:
- image: quay.io/pypa/manylinux2014_x86_64
arch: "x86_64"
# - image: quay.io/pypa/manylinux2014_aarch64
# arch: "arm64"
image: quay.io/pypa/manylinux2014_x86_64
env:
ARTIFACT_NAME: manylinux_x86_64

steps:
- name: Checkout
Expand All @@ -34,9 +28,27 @@ jobs:
- name: Run the build
run: |
git config --global --add safe.directory $(pwd)
./build.sh manylinux_x86_64.tar.gz
./build.sh "${ARTIFACT_NAME}"
- name: Upload tarball
uses: actions/upload-artifact@v3
with:
path: hdf5/manylinux_x86_64.tar.gz
name: ${{ env.ARTIFACT_NAME }}
path: hdf5/${{ env.ARTIFACT_NAME }}.tar.gz

publish:
name: Publish libraries
runs-on: ubuntu-latest

steps:
- name: Download manylinux artifact
uses: actions/download-artifact@v3
with:
name: manylinux_x86_64
path: artifacts

- name: Publish release
uses: softprops/action-gh-release@v1
with:
name: HDF5 1.12.2
files: artifacts/*

0 comments on commit d48ac58

Please sign in to comment.