-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.2 KB
/
build-plugin.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
name: Build Plugin
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x.x'
- name: Restore
run: dotnet restore
- name: Download Dalamud
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"
- name: Build
run: |
dotnet build --no-restore --configuration Release --nologo
- uses: ncipollo/release-action@v1
with:
artifacts: "./HoardFarm/bin/x64/Release/HoardFarm/latest.zip"
name: ${{ github.event.head_commit.message }}
makeLatest: true
- run: |
rm -R ./HoardFarm/bin/x64/Release/HoardFarm
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: latest
path: ./HoardFarm/bin/x64/Release/