meshtastic-debian: publish with dput (#5753)

This commit is contained in:
Austin 2025-01-05 13:31:01 -05:00 committed by GitHub
parent 5196ee39cb
commit 7c10caa78b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 22 deletions

View File

@ -24,13 +24,13 @@ jobs:
- name: Install deps - name: Install deps
shell: bash shell: bash
working-directory: meshtasticd
run: | run: |
sudo apt-get update -y --fix-missing sudo apt-get update -y --fix-missing
sudo apt-get install -y software-properties-common sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:meshtastic/meshtastic-daily -y sudo add-apt-repository ppa:meshtastic/meshtastic-daily -y
sudo apt-get install -y build-essential devscripts equivs \ sudo apt-get install -y build-essential devscripts equivs
platformio python3-protobuf python3-grpcio \ sudo mk-build-deps --install --remove --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
libyaml-cpp-dev libgpiod-dev libbluetooth-dev libusb-1.0-0-dev libi2c-dev
- name: Import GPG key - name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6 uses: crazy-max/ghaction-import-gpg@v6
@ -54,7 +54,7 @@ jobs:
- name: Store binaries as an artifact - name: Store binaries as an artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: firmware-debian-${{ steps.version.outputs.long }}-src.zip name: firmware-debian-${{ steps.version.outputs.long }}-src
overwrite: true overwrite: true
path: | path: |
meshtasticd_${{ steps.version.outputs.short }}* meshtasticd_${{ steps.version.outputs.short }}*

View File

@ -24,10 +24,24 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
path: meshtasticd
ref: ${{github.event.pull_request.head.ref}} ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}} repository: ${{github.event.pull_request.head.repo.full_name}}
- 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
- name: Get release version string - name: Get release version string
working-directory: meshtasticd
run: | run: |
echo "long=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT echo "long=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
echo "short=$(./bin/buildinfo.py short)" >> $GITHUB_OUTPUT echo "short=$(./bin/buildinfo.py short)" >> $GITHUB_OUTPUT
@ -36,27 +50,27 @@ jobs:
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: firmware-debian-${{ steps.version.outputs.long }}-src.zip name: firmware-debian-${{ steps.version.outputs.long }}-src
merge-multiple: true merge-multiple: true
# - name: Install deps
# shell: bash
# run: |
# sudo apt-get update -y --fix-missing
# sudo apt-get install -y dput
- name: Display structure of downloaded files - name: Display structure of downloaded files
run: ls -R run: ls -R
- name: Publish PPA - name: Publish with dput
if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }}
uses: yuezk/publish-ppa-package@v2 run: |
with: dput ppa:meshtastic/meshtastic-daily meshtasticd_${{ steps.version.outputs.short }}_source.changes
# See https://launchpad.net/~meshtastic/+archive/ubuntu/meshtastic-daily
repository: "meshtastic/meshtastic-daily" # - name: Publish PPA
gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }} # if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }}
tarball: "meshtasticd_${{ steps.version.outputs.short }}.tar.xz" # uses: yuezk/publish-ppa-package@v2
# Supported Ubuntu versions # with:
series: "plucky oracular noble jammy" # # See https://launchpad.net/~meshtastic/+archive/ubuntu/meshtastic-daily
deb_email: "github-actions[bot]@users.noreply.github.com" # repository: "meshtastic/meshtastic-daily"
deb_fullname: "github-actions[bot]" # 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"