-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (41 loc) · 1.21 KB
/
Copy pathdeploy.yml
File metadata and controls
51 lines (41 loc) · 1.21 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
42
43
44
45
46
47
48
49
50
51
name: Deploy
# Deploys to production when a version tag (v*) is pushed to main, when a
# GitHub Release is published, or manually from the Actions tab. Merging to
# main on its own no longer deploys — CI (ci.yml) is what gates that merge,
# a tag or release is what ships it.
on:
push:
tags:
- 'v*'
release:
types:
- published
workflow_dispatch:
permissions:
contents: read
# Prevent overlapping production deployments.
concurrency:
group: deploy-production
cancel-in-progress: false
jobs:
deploy:
name: Deploy to production
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
steps:
- name: Checkout release
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- name: Deploy with Deployer
uses: deployphp/action@v1.0.26
with:
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
# This is the custom CI entry task defined in deploy.php.
# It executes the production deployment without prompting
# for interactive confirmation.
dep: "deploy production"
verbosity: -vvv