2025-01-05 16:22:11 +00:00
|
|
|
name: Package Launchpad PPA
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
2025-01-05 17:30:43 +00:00
|
|
|
secrets:
|
|
|
|
PPA_GPG_PRIVATE_KEY:
|
|
|
|
required: true
|
2025-01-05 16:22:11 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-debian-src:
|
|
|
|
uses: ./.github/workflows/build_debian_src.yml
|
2025-01-05 17:30:43 +00:00
|
|
|
secrets: inherit
|
2025-01-05 16:22:11 +00:00
|
|
|
|
|
|
|
package-ppa:
|
|
|
|
runs-on: ubuntu-24.04
|
|
|
|
needs: build-debian-src
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2025-01-05 18:31:01 +00:00
|
|
|
path: meshtasticd
|
2025-01-05 16:22:11 +00:00
|
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
|
|
|
2025-01-05 18:31:01 +00:00
|
|
|
- name: Install deps
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get update -y --fix-missing
|
|
|
|
sudo apt-get install -y dput
|
|
|
|
|
|
|
|
- name: Import GPG key
|
|
|
|
uses: crazy-max/ghaction-import-gpg@v6
|
|
|
|
with:
|
|
|
|
gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }}
|
|
|
|
id: gpg
|
|
|
|
|
2025-01-05 16:22:11 +00:00
|
|
|
- name: Get release version string
|
2025-01-05 18:31:01 +00:00
|
|
|
working-directory: meshtasticd
|
2025-01-05 16:22:11 +00:00
|
|
|
run: |
|
|
|
|
echo "long=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
|
|
|
|
echo "short=$(./bin/buildinfo.py short)" >> $GITHUB_OUTPUT
|
|
|
|
id: version
|
|
|
|
|
|
|
|
- name: Download artifacts
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
2025-01-05 18:31:01 +00:00
|
|
|
name: firmware-debian-${{ steps.version.outputs.long }}-src
|
2025-01-05 16:22:11 +00:00
|
|
|
merge-multiple: true
|
|
|
|
|
|
|
|
- name: Display structure of downloaded files
|
|
|
|
run: ls -R
|
|
|
|
|
2025-01-05 18:31:01 +00:00
|
|
|
- name: Publish with dput
|
2025-01-05 16:22:11 +00:00
|
|
|
if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }}
|
2025-01-05 18:31:01 +00:00
|
|
|
run: |
|
|
|
|
dput ppa:meshtastic/meshtastic-daily meshtasticd_${{ steps.version.outputs.short }}_source.changes
|
|
|
|
|
|
|
|
# - name: Publish PPA
|
|
|
|
# if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }}
|
|
|
|
# uses: yuezk/publish-ppa-package@v2
|
|
|
|
# with:
|
|
|
|
# # See https://launchpad.net/~meshtastic/+archive/ubuntu/meshtastic-daily
|
|
|
|
# repository: "meshtastic/meshtastic-daily"
|
|
|
|
# gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }}
|
|
|
|
# gpg_passphrase: ""
|
|
|
|
# tarball: "meshtasticd_${{ steps.version.outputs.short }}.tar.xz"
|
|
|
|
# deb_email: "github-actions[bot]@users.noreply.github.com"
|
|
|
|
# deb_fullname: "github-actions[bot]"
|
|
|
|
# # Supported Ubuntu versions
|
|
|
|
# series: "plucky oracular noble jammy"
|