-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbasic.yml
More file actions
31 lines (28 loc) · 870 Bytes
/
basic.yml
File metadata and controls
31 lines (28 loc) · 870 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
# Placeholder `setup-trellis-cli` action for deploying Trellis sites
name: Deploy site
on:
workflow_dispatch:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.TRELLIS_DEPLOY_SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.TRELLIS_DEPLOY_SSH_KNOWN_HOSTS }}
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.TRELLIS_DEPLOY_SSH_PRIVATE_KEY }}
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: roots/setup-trellis-cli@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ansible-vault-password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
- name: Deploy Production
run: trellis deploy production