Skip to content

Commit 596983b

Browse files
authored
Merge pull request #5735 from lonnieezell/develop
junk
2 parents 70d881c + 43c8ee3 commit 596983b

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# When changes are pushed to the master branch,
2+
# build the current version of the User Guide
3+
# with Sphinx and deploy it to the production server.
4+
#
5+
# @todo Consolidate checkouts
6+
name: Deploy User Guide
7+
8+
on:
9+
push:
10+
branches:
11+
- 'master'
12+
paths:
13+
- 'user_guide_src/**'
14+
15+
jobs:
16+
build:
17+
name: Deploy to production
18+
if: (github.repository == 'codeigniter4/CodeIgniter4')
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
# Build the latest User Guide
25+
- name: Build with Sphinx
26+
uses: ammaraskar/[email protected]
27+
with:
28+
docs-folder: user_guide_src/
29+
30+
# Create an artifact of the html output
31+
- name: Upload artifact
32+
uses: actions/upload-artifact@v2
33+
with:
34+
name: HTML Documentation
35+
path: user_guide_src/build/html/
36+
37+
- name: Install SSH key
38+
uses: shimataro/ssh-key-action@v2
39+
with:
40+
key: ${{ secrets.DEPLOY_KEY }}
41+
name: id_rsa
42+
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
43+
44+
- name: Deploy to Webserver
45+
uses: yeshan333/rsync-deploy-action@main
46+
id: rsync-deploy-action
47+
with:
48+
ssh_login_username: ${{ secrets.DEPLOY_USER }}
49+
remote_server_ip: ${{ secrets.DEPLOY_SSH_BOX }}
50+
ssh_port: ${{ secrets.DEPLOY_PORT }}
51+
ssh_private_key: ${{ secrets.DEPLOY_KEY }}
52+
source_path: "user_guide_src/build/html/*"
53+
destination_path: "/home/public_html/userguides/user_guide_4/"

0 commit comments

Comments
 (0)