-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheject-production.yml
More file actions
37 lines (31 loc) · 986 Bytes
/
eject-production.yml
File metadata and controls
37 lines (31 loc) · 986 Bytes
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
# .github/workflows/eject-production.yml
##
# Eject production
#
# Export a Trellis-managed site from production
# for delivery to a traditional WordPress environment
# and attach artifacts to the workflow run for download
##
name: ⏏️ Eject production for delivery
run-name: eject-production
on:
workflow_dispatch:
env:
from: production
jobs:
eject-production:
runs-on: ubuntu-latest
steps:
# Checkout the repo
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.ref }}
# Eject production for delivery
- uses: ./.github/actions/eject
name: Eject production for delivery
with:
from: ${{ env.from }}
trellis_site_slug: ${{ secrets.TRELLIS_SITE_SLUG }}
trellis_deploy_ssh_private_key: ${{ secrets.TRELLIS_DEPLOY_SSH_PRIVATE_KEY }}
trellis_deploy_ssh_known_hosts: ${{ secrets.TRELLIS_DEPLOY_SSH_KNOWN_HOSTS }}
working_directory: ./site