-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.23 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: 🚀 Validate and deploy datapack
env:
MC_VERSION: '1.19'
on:
push:
branches:
- master
workflow_dispatch:
inputs:
forceUpload:
type: boolean
description: "Force uploading all files"
removeExtraFilesOnServer:
type: boolean
description: "Remove extra files on server"
default: true
jobs:
check:
name: Check commands
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mcbeet/check-commands@v1
with:
source: .
minecraft: ${{ env.MC_VERSION }}
deploy:
name: Deploy datapack
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: chetan/git-restore-mtime-action@v2
- uses: wangyucode/[email protected]
with:
host: servers.minemakers.net
port: 5657
username: ${{ secrets.SFTP_USERNAME }}
password: ${{ secrets.SFTP_PASSWORD }}
compress: true
localDir: '.'
remoteDir: './crafty-monkeys/datapacks/crafty-monkeys/'
exclude: '.git*/**,.gitattributes,.editorconfig,README.md,LICENSE'
removeExtraFilesOnServer: true