Skip to content

Commit bbdd8dd

Browse files
author
Greg Bowler
committed
initial commit
0 parents  commit bbdd8dd

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

Diff for: .github/FUNDING.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# These are supported funding model platforms
2+
github: [g105b]

Diff for: README.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Deploy your application using SSH
2+
=================================
3+
4+
After a successful test run, this action can copy the project's files via SSH to another server, a remote Docker container, or into a fresh server.
5+
6+
An example repository has been created at https://github.com/php-actions/example-deploy to show how to use this action in development and production projects.
7+
8+
Usage
9+
-----
10+
11+
Create your Github Workflow configuration in `.github/workflows/ci.yml` or similar.
12+
13+
```yml
14+
name: CI
15+
16+
on: [push]
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
# Load the pre-build project files:
24+
- uses: actions/download-artifact@v3
25+
with:
26+
name: build-artifact
27+
path: /tmp/github-actions
28+
29+
# Then deploy to your server of choice
30+
- uses: php-actions/deploy
31+
with:
32+
hostname: deploy.example.com
33+
user: webdeploy
34+
copy_to: /var/www/example.com
35+
```

0 commit comments

Comments
 (0)