Skip to content

Commit 10fed67

Browse files
committed
Update actions to automatically deploy to main server
1 parent e53337d commit 10fed67

File tree

9 files changed

+37
-3430
lines changed

9 files changed

+37
-3430
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy Production
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags-ignore:
8+
- '**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
if: github.repository == 'MinecraftTAS/minecrafttas.com'
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: true # Fetch Hugo themes (true OR recursive)
18+
fetch-depth: 0
19+
20+
- name: Setup Hugo
21+
uses: peaceiris/actions-hugo@v3
22+
with:
23+
hugo-version: 'latest'
24+
extended: true
25+
26+
- name: Build
27+
run: hugo
28+
29+
- name: Deploy with Rsync
30+
uses: burnett01/rsync-deployments@7.0.2
31+
with:
32+
switches: -avzr --delete
33+
path: public/
34+
remote_path: ${{ secrets.SERVER_DEPLOY_PATH }}
35+
remote_host: ${{ secrets.SERVER_HOST }}
36+
remote_user: ${{ secrets.SERVER_USER_NAME }}
37+
remote_key: ${{ secrets.SERVER_USER_KEY }}

.github/workflows/gh-pages.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

Not Upload/Download.ai

Lines changed: 0 additions & 1501 deletions
This file was deleted.

Not Upload/DownloadButton.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

Not Upload/GitHub-Mark.ai

Lines changed: 0 additions & 1894 deletions
This file was deleted.

Not Upload/Launcherlogo.png

-409 KB
Binary file not shown.

Not Upload/MultiMCLogo.png

-38.2 KB
Binary file not shown.

Not Upload/favicon.ico

-4.19 KB
Binary file not shown.

static/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)