-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.01 KB
/
flywheel-deploy-plugins.yml
File metadata and controls
41 lines (35 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deploy themes to Flywheel
on:
workflow_call:
inputs:
env_site_slug:
type: string
required: true
env_ssh_host:
type: string
required: true
secrets:
known_hosts:
required: true
flywheel_ssh_user:
required: true
flywheel_ssh_key_private:
required: true
jobs:
deploy:
runs-on: ubuntu-latest
if: always()
steps:
- uses: actions/checkout@v6
with:
fetch-depth: '0'
- uses: benoitchantre/setup-ssh-authentication-action@1.0.1
with:
private-key: ${{ secrets.flywheel_ssh_key_private }}
private-key-name: deploy-flywheel
known-hosts: ${{ secrets.known_hosts }}
- run: |
rsync -chaviP --delete --stats --no-times --no-perms \
-e 'ssh -i ~/.ssh/deploy-flywheel' \
--filter=':- /.gitignore' \
wp-content/plugins/ "${{ secrets.flywheel_ssh_user }}+${{ inputs.env_site_slug }}@${{ inputs.env_ssh_host }}:/www/wp-content/plugins"