github workflow: build_setup: employ shell script with GITHUB_WORKSPACE
This commit is contained in:
parent
3e00543028
commit
c8bee63942
5
.github/setup.sh
vendored
Executable file
5
.github/setup.sh
vendored
Executable 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/
|
4
.github/workflows/pypi-deploy.yml
vendored
4
.github/workflows/pypi-deploy.yml
vendored
@ -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 }}
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat README.md | grep '^# IMCtermite' -A 50000 > python/README.md
|
||||
cp -r lib python/
|
||||
cp -v LICENSE python
|
Loading…
x
Reference in New Issue
Block a user