From c8bee6394218841527f2e57cf4f85890aa96c96b Mon Sep 17 00:00:00 2001 From: Mario Fink Date: Tue, 21 Sep 2021 17:20:46 +0200 Subject: [PATCH] github workflow: build_setup: employ shell script with GITHUB_WORKSPACE --- .github/setup.sh | 5 +++++ .github/workflows/pypi-deploy.yml | 4 +++- python/setup.sh | 5 ----- 3 files changed, 8 insertions(+), 6 deletions(-) create mode 100755 .github/setup.sh delete mode 100755 python/setup.sh diff --git a/.github/setup.sh b/.github/setup.sh new file mode 100755 index 0000000..f727f1a --- /dev/null +++ b/.github/setup.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cat ../README.md | grep '^# IMCtermite' -A 50000 > ../python/README.md +cp -r ../lib ../python/ +cp -v ../LICENSE ../python/ diff --git a/.github/workflows/pypi-deploy.yml b/.github/workflows/pypi-deploy.yml index a12a03c..11771fa 100644 --- a/.github/workflows/pypi-deploy.yml +++ b/.github/workflows/pypi-deploy.yml @@ -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 }} diff --git a/python/setup.sh b/python/setup.sh deleted file mode 100755 index 337e17d..0000000 --- a/python/setup.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -cat README.md | grep '^# IMCtermite' -A 50000 > python/README.md -cp -r lib python/ -cp -v LICENSE python