Skip to content

Commit

Permalink
Fix env var?
Browse files Browse the repository at this point in the history
  • Loading branch information
kkinder committed May 27, 2024
1 parent bcf2bab commit 11447e3
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,22 @@ jobs:
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Set Release Version
id: set_release_version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Display Release Version
run: echo "The release version is ${{ env.RELEASE_VERSION }}"
- name: Set release version
id: set_version
run: |
echo "RELEASE_VERSION=$(poetry version -s)" >> $GITHUB_ENV
echo "Release version is ${{ env.RELEASE_VERSION }}"
- name: build
run: |
poetry build
zip -r puepy-${RELEASE-VERSION}.zip puepy/*.py
echo puepy-${RELEASE-VERSION}.zip
VERSION=$(poetry version -s)
zip -r puepy-${{ env.RELEASE_VERSION }}.zip puepy/*.py
echo puepy-${{ env.RELEASE_VERSION }}.zip
- name: Upload release artifact
uses: Shopify/[email protected]
with:
name: puepy-${{ env.RELEASE-VERSION }}.zip
path: puepy-${{ env.RELEASE-VERSION }}.zip
name: puepy-${{ env.RELEASE_VERSION }}.zip
path: puepy-${{ env.RELEASE_VERSION }}.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
# - name: build
# - name: Publish package distributions to PyPI
Expand Down

0 comments on commit 11447e3

Please sign in to comment.