Skip to content

Commit

Permalink
fix: update release job to build in the correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed May 22, 2024
1 parent 64dc341 commit fb4592f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
workflow_dispatch:

env:
PACKAGE_DIR: equinix_metal
DIST_DIR: equinix_metal/dist
DIST_DIR: dist
jobs:
release:
name: Build and publish package
Expand Down Expand Up @@ -52,9 +51,8 @@ jobs:
RELEASE_REQUESTER: "@${{ github.event.sender.login }}"

- name: Build package
working-directory: ${{ env.PACKAGE_DIR }}
run: |
python -m build --sdist --wheel --outdir dist/ .
python -m build --sdist --wheel --outdir ${{ env.DIST_DIR }} .
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit fb4592f

Please sign in to comment.