mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-27 13:56:23 +02:00
github-actions: move directories out of their subfolders
This commit is contained in:
parent
f889a2c58b
commit
948a82cf5b
1 changed files with 24 additions and 0 deletions
24
.github/workflows/test-and-deploy.yml
vendored
24
.github/workflows/test-and-deploy.yml
vendored
|
|
@ -130,6 +130,11 @@ jobs:
|
|||
name: dist-artifacts-${{ matrix.os }}-${{ matrix.python }}
|
||||
path: dist
|
||||
|
||||
# Output the artifact name for later use
|
||||
- name: Set output
|
||||
id: set_output
|
||||
run: echo "dist-artifacts-${{ matrix.os }}-${{ matrix.python }}" >> $GITHUB_ENV
|
||||
|
||||
build-macos:
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -161,6 +166,11 @@ jobs:
|
|||
name: dist-artifacts-${{ matrix.os }}-${{ matrix.python }}
|
||||
path: dist/*
|
||||
|
||||
# Output the artifact name for later use
|
||||
- name: Set output
|
||||
id: set_output
|
||||
run: echo "dist-artifacts-${{ matrix.os }}-${{ matrix.python }}" >> $GITHUB_ENV
|
||||
|
||||
build-linux:
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -210,6 +220,11 @@ jobs:
|
|||
name: dist-artifacts-manylinux-${{ matrix.python }}
|
||||
path: dist/*
|
||||
|
||||
# Output the artifact name for later use
|
||||
- name: Set output
|
||||
id: set_output
|
||||
run: echo "dist-artifacts-manylinux-${{ matrix.python }}" >> $GITHUB_ENV
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]
|
||||
|
|
@ -232,6 +247,15 @@ jobs:
|
|||
with:
|
||||
path: dist
|
||||
|
||||
- name: Get artifact names
|
||||
run: |
|
||||
# Read the artifact_name output from the build job
|
||||
ARTIFACT_NAME=$(grep 'artifact_name=' $GITHUB_ENV | cut -d= -f2)
|
||||
|
||||
# Download artifacts without additional subdirectories
|
||||
mkdir -p dist
|
||||
mv dist/$ARTIFACT_NAME/* dist/
|
||||
|
||||
- name: Inspect wheel files
|
||||
run: |
|
||||
ls -R dist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue