This action creates a private Debian Repository using Github pages.
Required GitHub OAUTH2 TOKEN, should be set to ${{secrets.GITHUB_TOKEN}}
Required path in the master branch where to store the GitHub pages. It is recommended to use the following path './docs/debian'
Required name of the debian package, for example 'debcvescan'
Required CPU architecture to use, for example 'amd64'
Required Operating system to use, for example 'linux'
Required Debian release code name for example 'buster'
Required Private GPG key used to sign the Debian packages exported with empty password
Required Public GPG key used to sign the Debian packages
- Create private key without password
gpg --gen-key
- Export key without password
gpg –output PUBLIC.KEY –armor –export <email_of_key>
- Export private key:
gpg –output PRIVATE.KEY –armor –export-secret-key <email_of_key>
- Create GitHub secrets
PUBLIC_KEY
and paste content of PUBLIC.KEY file. See details in https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets - Create GitHub secrets
PRIVATE_KEY
and paste content of PRIVATE.KEY file. See details in https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets
name: DebianRepository
on: [push]
jobs:
release:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Create Debian repository test
uses: ./
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}
PUBLIC_KEY: ${{secrets.PUBLIC_KEY}}
REPOSITORY: './docs/debian'
NAME: 'debcvescan'
ARCH: 'amd64'
OS: 'linux'
CODENAME: 'buster'