Skip to content

Commit

Permalink
Fix extraction of version for ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGalewsky committed Aug 11, 2021
1 parent 31b2b94 commit 2eb1c74
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Git branch name
id: git-branch-name
uses: EthanSK/git-branch-name-action@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip build
- name: Set the funcx version
env:
funcx_version: ${{ github.ref }}
run: |
echo "funcx_version $funcx_version"
sed "s/__version__ *= *\".*\"/__version__ = \"$funcx_version\"/" funcx_sdk/funcx/sdk/version.py > funcx_sdk/funcx/sdk/version.py
sed "s/__version__ *= *\".*\"/__version__ = \"$funcx_version\"/" funcx_endpoint/funcx_endpoint/version.py > funcx_endpoint/funcx_endpoint/version.py
shell: bash -x

echo "funcx_version $GIT_BRANCH_NAME"
sed -i "s/__version__ *= *\".*\"/__version__ = \"$GIT_BRANCH_NAME\"/" funcx_sdk/funcx/sdk/version.py
sed -i "s/__version__ *= *\".*\"/__version__ = \"$GIT_BRANCH_NAME\"/" funcx_endpoint/funcx_endpoint/version.py
- name: Push updated version to branch
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Bump version
- name: Build the sdk
run: |
cd funcx_sdk
cat funcx/sdk/version.py
python -m build --sdist --wheel
- name: Build the endpoint
run: |
Expand Down

0 comments on commit 2eb1c74

Please sign in to comment.