Skip to content

Commit

Permalink
fix upload action for multi strategy distro
Browse files Browse the repository at this point in the history
  • Loading branch information
joshschmelzle authored Sep 25, 2024
1 parent 0edc257 commit d7ec438
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/build-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,16 @@ jobs:
name: wlanpi-kernel-${{ steps.build-kernel.outputs.package-version }}
path: ${{ steps.build-kernel.outputs.deb-package }}

- name: Upload bullseye package to debian/bullseye on packagecloud
if: ${{ github.event.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} && matrix.distro == 'bullseye'
- name: Upload package to debian/${{ matrix.distro }} on packagecloud
if: ${{ github.event.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
uses: danielmundi/upload-packagecloud@main
with:
package-name: ${{ steps.build-kernel.outputs.deb-package }}
packagecloud-username: wlanpi
packagecloud-repo: dev
packagecloud-distrib: debian/bullseye
packagecloud-distrib: debian/${{ matrix.distro }}
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }}

- name: Upload bookworm package to debian/bookworm on packagecloud
if: ${{ github.event.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} && matrix.distro == 'bookworm'
uses: danielmundi/upload-packagecloud@main
with:
package-name: ${{ steps.build-kernel.outputs.deb-package }}
packagecloud-username: wlanpi
packagecloud-repo: dev
packagecloud-distrib: debian/bookworm
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }}

slack-workflow-status:
if: always()
name: Post Workflow Status to Slack
Expand Down

0 comments on commit d7ec438

Please sign in to comment.