Skip to content

Commit

Permalink
workflows:build - dynamically set acacore to use local package
Browse files Browse the repository at this point in the history
Remote git dependencies cannot be installed offline
  • Loading branch information
MatteoCampinoti94 committed Nov 20, 2023
1 parent 0240a46 commit a74fc88
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build Wheels
- uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ env.POETRY_VERSION }}
- name: Build Dependencies Wheels
run: python -m pip wheel -w dist .
- name: Build Package Wheel
run: |
acacore="$(grep 'acacore =' pyproject.toml | grep -oE 'tag[ ]*=[ ]*"[^"]+"')"
acacore="${acacore#*\"}"
acacore="${acacore#v}"
acacore="${acacore%\"}"
sed -ie "s/acacore *=.*/acacore = \"$acacore\"/g" pyproject.toml
poetry build
- name: Save Wheels
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit a74fc88

Please sign in to comment.