Skip to content

dispatch-event

dispatch-event #24

Workflow file for this run

name: Commit and deploy package
on:
repository_dispatch:
types: [dispatch-event]
permissions:
pages: write
id-token: write
contents: write
jobs:
deploy-debian-packages:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
lfs: true
- name: Set Package version
id: version
run: |
echo 'NIGHTLY=${{ github.event.client_payload.message }}' >> $GITHUB_OUTPUT
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v6.1.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Download DPDK package
uses: robinraju/release-downloader@v1.10
with:
repository: "MarvellEmbeddedProcessors/marvell-dpdk"
latest: ${{ steps.version.outputs.NIGHTLY == 'latest' && 'true' || 'false' }}
tag: ${{ steps.version.outputs.NIGHTLY == 'latest' && '' || steps.version.outputs.NIGHTLY }}
fileName: "*.deb"
- name: Download DAO package
uses: robinraju/release-downloader@v1.10
with:
repository: "MarvellEmbeddedProcessors/dpu-accelerator-offload"
latest: ${{ steps.version.outputs.NIGHTLY == 'latest' && 'true' || 'false' }}
tag: ${{ steps.version.outputs.NIGHTLY == 'latest' && '' || steps.version.outputs.NIGHTLY }}
fileName: "*.deb"
- name: Download OVS package
uses: robinraju/release-downloader@v1.10
with:
repository: "MarvellEmbeddedProcessors/marvell-ovs"
latest: ${{ steps.version.outputs.NIGHTLY == 'latest' && 'true' || 'false' }}
tag: ${{ steps.version.outputs.NIGHTLY == 'latest' && '' || steps.version.outputs.NIGHTLY }}
fileName: "*.deb"
- name: Commit packages
env:
EMAIL: pbhagavatula@marvell.com
run: |
ls -alh
git config --global user.name 'Pavan Nikhilesh'
git config --global user.email "${EMAIL}"
mkdir -p ${PWD}/ubuntu
mv *.deb ${PWD}/ubuntu/.
cd ${PWD}/ubuntu
gpg --armor --export "${EMAIL}" > dao.gpg
dpkg-scanpackages --multiversion . > Packages
gzip -k -f Packages
apt-ftparchive release . > Release
gpg --default-key "${EMAIL}" -abs -o - Release > Release.gpg
gpg --default-key "${EMAIL}" --clearsign -o - Release > InRelease
echo "deb [signed-by=/etc/apt/keyrings/dao.gpg] https://marvellembeddedprocessors.github.io/packages/ubuntu ./" > dao.list
cd -
git add .
git commit -sam 'Package update : ${{ steps.version.outputs.NIGHTLY }}'
git push
- name: Setup Pages
uses: actions/configure-pages@v5.0.0
- name: Upload artifact
uses: actions/upload-pages-artifact@v3.0.1
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.0.5