Install packages using cache #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to PPA | |
on: [push] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
# Install additional packages | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: devscripts debhelper dput python3-paramiko | |
version: 1.0 | |
# Install our GnuPG key pair | |
- env: | |
GPG_KEYS: ${{ secrets.GPG_KEYS }} | |
run: .github/install_gpg_keys.sh | |
# Install our SSH key pair | |
- env: | |
SSH_ID: ${{ secrets.SSH_ID }} | |
run: .github/install_ssh_id.sh | |
# Main script | |
- env: | |
COMMIT_BEFORE: ${{ github.event.before }} | |
COMMIT_AFTER: ${{ github.event.after }} | |
run: .github/main.sh |