Skip to content

Instantly share code, notes, and snippets.

View spreadzp's full-sized avatar

Paul spreadzp

View GitHub Profile
@spreadzp
spreadzp / deploy-new-bot.yml
Created March 6, 2023 20:20 — forked from HenrySpartGlobal/deploy-new-bot.yml
Auto Deployment of Discord Bot with Systemd and GitHub Actions
# Author: Henry Koleoso
# Put these two files in .github/workflows/
# Prerequisites:
# SSH Key pair - Private key in GitHub Secrets, Public key in /root/.ssh/authorized_keys on your server
# Discord Bot token - In GitHub Secrets or Environment Variables.
# This file is the workflow that handles the initial setup of your Discord bot.
# This job should be run only ONCE. Changes in 'create-systemctl-service' are appended to the systemd.service file, not overwritten so the file will be invalid!
# If you make a mistake, and need to run this job more than once, navigate to /etc/systemd/system