From a387fbab0e55e382bedd58e2fd16ae3d05512092 Mon Sep 17 00:00:00 2001 From: Eric Prestat Date: Sat, 2 Dec 2023 17:29:58 +0100 Subject: [PATCH] Simplify release workflow --- .github/workflows/release.yml | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 287196fe8..a9f749b3a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,28 +14,13 @@ on: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: - build: - name: Build wheel and sdist - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Run build - run: | - pipx run build - - - name: Display built files - run: | - ls -shR - working-directory: dist - - - uses: actions/upload-artifact@v3 - with: - path: dist/* - name: artifacts + package_and_test: + name: Package and Test + # Use the "reusable workflow" from the hyperspy organisation + uses: hyperspy/.github/.github/workflows/package_and_test.yml@main upload_to_pypi: - needs: [build] + needs: [package_and_test] runs-on: ubuntu-latest name: Upload to pypi permissions: @@ -44,9 +29,6 @@ jobs: steps: - name: Download dist uses: actions/download-artifact@v3 - with: - name: artifacts - path: dist - name: Display downloaded files run: |