mirror of
https://github.com/ysoftdevs/oauth-playground-client.git
synced 2026-01-19 01:57:24 +01:00
CD pipeline
This commit is contained in:
22
.github/workflows/deploy.yml
vendored
Normal file
22
.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: OAuth playground client 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/
|
||||
Reference in New Issue
Block a user