Skip to content

Commit

Permalink
fix: add version env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SteinRobert committed Apr 16, 2024
1 parent 32d98a6 commit 0dfab3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/dist-build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Determine version
run: cat pyproject.toml | grep version -m 1 | awk '{ print "PYAPP_PROJECT_VERSION="substr($3, 2, length($3) -2)}' >> $GITHUB_ENV
- name: Setup PyOxidizer and build
working-directory: client/
env:
Expand All @@ -32,10 +34,7 @@ jobs:
PYAPP_DISTRIBUTION_EMBED: 1
PYAPP_SKIP_INSTALL: 1
run: |
cat pyproject.toml | grep version -m 1 | awk '{ print "PYAPP_PROJECT_VERSION="substr($3, 2, length($3) -2)}' >> $GITHUB_ENV
curl ${PYAPP_DOWNLOAD}
export PYAPP_PROJECT_VERSION=${{ env.PYAPP_PROJECT_VERSION }}
echo $PYAPP_PROJECT_VERSION
tar -xzf pyapp-source.tar.gz
mv pyapp-v* pyapp-latest
cd pyapp-latest
Expand Down

0 comments on commit 0dfab3a

Please sign in to comment.