legoktm / gh-action-dput

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Action to upload Debian package

This GitHub Action uses dput to upload Debian packages to a PPA or repository.

Configuration

  • gpg_key: This should be saved as a GitHub secret as base64 encoded. gpg --export-secret-key --armor | base64 should do the trick.
  • repository: Repository to upload to.
  • packages: Paths of .changes files to upload, defaults to *_source.changes.
on: [push]

jobs:
  build-deb:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - uses: legoktm/gh-action-build-deb@ubuntu-bionic
        name: Build package for ubuntu-bionic
        id: build-ubuntu-bionic
        with:
          args: --no-sign

      - uses: legoktm/gh-action-dput@master
        name: Upload package
        # Only upload on pushes to master or a tag
        if: github.event_name == 'push' && (github.event.ref == 'refs/heads/master' || startsWith(github.event.ref, 'refs/tags'))
        with:
          gpg_key: ${{ secrets.GPG_KEY }}
          repository: ppa:legoktm/test
          packages: output/*_source.changes

Related Actions

License

Copyright © 2020 Kunal Mehta under the GPL, version 3 or any later version.

About

License:GNU General Public License v3.0


Languages

Language:Shell 61.2%Language:Dockerfile 38.8%