Skip to content

Commit

Permalink
Using later version to release panda wheel (#1475)
Browse files Browse the repository at this point in the history
* I need to use action-gh-release as this is not outdated

* Actually shoot, setup.sh creates pandare.deb, that gets version attached later. But we should try to get both packages uploaded in one shot ideally right?
  • Loading branch information
AndrewQuijano authored Mar 15, 2024
1 parent 4d0ba99 commit f7d44ef
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,6 @@ jobs:
working-directory: panda/debian
run: ./setup.sh Ubuntu ${{ matrix.ubuntu_version }}

- name: Get Name of Generated Wheel file
run: |
ARTIFACT_PATHNAME=$(ls panda/debian/*.whl | head -n 1)
ARTIFACT_NAME=$(basename $ARTIFACT_PATHNAME)
echo ::set-env name=ARTIFACT_NAME::${ARTIFACT_NAME}
echo ::set-env name=ARTIFACT_PATHNAME::${ARTIFACT_PATHNAME}
- name: Upload wheel to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ${{ env.ARTIFACT_PATHNAME }}
asset_name: ${{ env.ARTIFACT_NAME }}
asset_content_type: application/octet-stream

- name: Upload deb to release
uses: actions/upload-release-asset@v1
env:
Expand All @@ -84,6 +67,14 @@ jobs:
asset_name: pandare_${{ matrix.ubuntu_version }}.deb
asset_content_type: application/vnd.debian.binary-package

- name: Upload wheel to release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
panda/debian/pandare-*.whl
- name: 'Login to Docker Registry'
if: ${{ matrix.ubuntu_version == env.PANDA_CONTAINER_UBUNTU_VERSION }}
uses: docker/login-action@v3
Expand Down

0 comments on commit f7d44ef

Please sign in to comment.