github workflow: build_setup: employ shell script with GITHUB_WORKSPACE

This commit is contained in:
Mario Fink 2021-09-21 17:20:46 +02:00
parent 3e00543028
commit c8bee63942
3 changed files with 8 additions and 6 deletions

5
.github/setup.sh vendored Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
cat ../README.md | grep '^# IMCtermite' -A 50000 > ../python/README.md
cp -r ../lib ../python/
cp -v ../LICENSE ../python/

View File

@ -12,7 +12,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Prepare files
run: python/setup.sh
run: |
chmod +x "${GITHUB_WORKSPACE}/.github/setup.sh"
"${GITHUB_WORKSPACE}/.github/setup.sh"
build_wheels:
name: Build binary wheels on ${{ matrix.os }}

View File

@ -1,5 +0,0 @@
#!/bin/bash
cat README.md | grep '^# IMCtermite' -A 50000 > python/README.md
cp -r lib python/
cp -v LICENSE python