Skip to content

Commit 1e2a661

Browse files
committed
Add a GitHub Action to deploy the site to paveloom.dev.
1 parent ba695fe commit 1e2a661

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/Build & Deploy.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
branches:
55
- master
66
jobs:
7-
build-and-deploy:
8-
name: Build & Deploy
7+
build-and-deploy-1:
8+
name: paveloom.github.io
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout the repository
@@ -26,3 +26,29 @@ jobs:
2626
branch: gh-pages
2727
folder: public
2828
single-commit: true
29+
build-and-deploy-2:
30+
name: paveloom.dev
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout the repository
34+
uses: actions/checkout@v3
35+
with:
36+
fetch-depth: 0
37+
- name: Create the build directory
38+
run: mkdir public
39+
- name: Build the site
40+
uses: docker://paveloom/site
41+
with:
42+
args: |
43+
sh -c "\
44+
scripts/build.bash \
45+
https://paveloom.dev \
46+
https://github.com/paveloom/paveloom.github.io"
47+
- name: Deploy
48+
uses: SamKirkland/[email protected]
49+
with:
50+
server: ${{ secrets.FTP_SERVER }}
51+
username: ${{ secrets.FTP_USERNAME }}
52+
password: ${{ secrets.FTP_PASSWORD }}
53+
local-dir: public/
54+
server-dir: paveloom.dev/public_html/

0 commit comments

Comments
 (0)