Skip to content

Commit 47139d3

Browse files
authored
Merge pull request #35 from nemanjam/feature/rsync-action-workflow
Add rsync action workflow
2 parents 910a51b + 6f87ffb commit 47139d3

5 files changed

Lines changed: 64 additions & 4 deletions

File tree

.github/workflows/default__build-push-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
# enabled
66
branches:
7-
- 'main'
7+
- 'disabled-main'
88
tags:
99
- 'v[0-9]+.[0-9]+.[0-9]+'
1010
pull_request:
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Deploy Nginx rsync
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
tags:
8+
- 'v[0-9]+.[0-9]+.[0-9]+'
9+
pull_request:
10+
branches:
11+
- 'disabled-main'
12+
workflow_dispatch:
13+
14+
env:
15+
SITE_URL: 'https://nemanjamitic.com'
16+
PLAUSIBLE_SCRIPT_URL: 'https://plausible.arm1.nemanjamitic.com/js/script.js'
17+
PLAUSIBLE_DOMAIN: 'nemanjamitic.com'
18+
19+
jobs:
20+
deploy:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 1
28+
29+
- name: Print commit id, message and tag
30+
run: |
31+
git show -s --format='%h %s'
32+
echo "github.ref -> ${{ github.ref }}"
33+
34+
- name: Set up Node.js and pnpm
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 24.13.0
38+
registry-url: 'https://registry.npmjs.org'
39+
40+
- name: Install pnpm
41+
uses: pnpm/action-setup@v4
42+
with:
43+
version: 10.30.1
44+
45+
- name: Install dependencies
46+
run: pnpm install --frozen-lockfile
47+
48+
- name: Build nemanjamiticcom
49+
run: pnpm build
50+
51+
- name: Deploy dist via rsync
52+
uses: burnett01/rsync-deployments@v8
53+
with:
54+
switches: -avz --delete
55+
path: dist/
56+
remote_path: /home/ubuntu/traefik-proxy/apps/nmc-nginx-with-volume/website/
57+
remote_host: ${{ secrets.REMOTE_HOST }}
58+
remote_user: ${{ secrets.REMOTE_USERNAME }}
59+
remote_port: ${{ secrets.REMOTE_PORT }}
60+
remote_key: ${{ secrets.REMOTE_KEY_ED25519 }}

.github/workflows/default__deploy-nginx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
# enabled
66
branches:
7-
- 'main'
7+
- 'disabled-main'
88
tags:
99
- 'v[0-9]+.[0-9]+.[0-9]+'
1010
pull_request:

.github/workflows/gh-pages__deploy-astro.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
push:
88
# enabled
99
branches:
10-
- 'main'
10+
- 'disabled-main'
1111
tags:
1212
- 'v[0-9]+.[0-9]+.[0-9]+'
1313
pull_request:

.github/workflows/vercel__deploy-manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Deploy to Vercel manually
55
on:
66
push:
77
branches:
8-
- 'main'
8+
- 'disabled-main'
99
tags:
1010
- 'v[0-9]+.[0-9]+.[0-9]+'
1111

0 commit comments

Comments
 (0)