-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Deployment
on: [push, workflow_dispatch]
concurrency:
group: plogon-deploy
cancel-in-progress: true
jobs:
run-plogon:
name: Build Plugins
runs-on: ubuntu-latest
steps:
- name: Set up SSH key
if: github.ref == 'refs/heads/main'
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: Install DalamudRepoTool
if: github.ref == 'refs/heads/main'
run: |
cargo install --git https://github.com/redstrate/DalamudRepoTool.git
- name: Checkout manifests
uses: actions/checkout@v4
with:
repository: redstrate/DalamudPlugins
path: manifests
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout Plogon
uses: actions/checkout@v4
with:
repository: goatcorp/Plogon
path: Plogon
- name: Create required folders
run: |
mkdir artifacts
mkdir work
mkdir output
- name: Run Plogon
working-directory: Plogon/Plogon
run: |
dotnet run -- \
--manifest-folder="${{ github.workspace }}/manifests" \
--output-folder="${{ github.workspace }}/output" \
--work-folder="${{ github.workspace }}/work" \
--static-folder="${{ github.workspace }}/Plogon/Plogon/static" \
--artifact-folder="${{ github.workspace }}/artifacts" \
--build-overrides-file="${{ github.workspace }}/manifests/overrides.toml" \
--mode=Continuous --build-all
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: plugin-artifact
path: output
- name: Create repo.json
if: github.ref == 'refs/heads/main'
run: |
DalamudRepoTool --download-host https://dalamud.xiv.zone --repo-path output
- name: Upload repository
if: github.ref == 'refs/heads/main'
run: |
rsync -e "ssh -p 38901 -o StrictHostKeyChecking=no" --recursive output/ deploy@ryne.moe:/srv/http/dalamud