Skip to content

Commit

Permalink
Add deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
p3k committed Jun 8, 2024
1 parent c682378 commit 6579c8f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy (Production)

on:
workflow_dispatch: {}
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

environment:
name: p3k.org
url: https://p3k.org/rss

steps:
- name: Setup SSH agent
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
mkdir -p ~/.ssh
echo '${{ vars.SSH_CONFIG }}' > ~/.ssh/config
echo '${{ vars.SSH_KNOWN_HOSTS }}' > ~/.ssh/known_hosts
- name: Copy files from stage to production
run: ssh rss-box deploy

0 comments on commit 6579c8f

Please sign in to comment.