mirror of
https://github.com/ysoftdevs/oauth-playground-client.git
synced 2026-01-11 22:41:29 +01:00
23 lines
646 B
YAML
23 lines
646 B
YAML
name: Deploy
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: Production
|
|
url: https://oauth-playground.online/
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install SSH Key
|
|
uses: shimataro/ssh-key-action@v2
|
|
with:
|
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
known_hosts: "just-a-placeholder-so-we-dont-get-errors"
|
|
- name: Adding Known Hosts
|
|
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
|
|
- name: Deploy with rsync
|
|
run: rsync -avz src/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/oauth-online/
|