-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.35 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
49
name: Build Plugin
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
env:
DALAMUD_HOME: /tmp/dalamud
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Get Tag Name
run: echo "tag=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_ENV
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x.x'
- name: Download Dalamud Latest
run: |
wget https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -O ${{ env.DALAMUD_HOME }}.zip
unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }}
- name: Restore
run: dotnet restore
- name: Build
run: |
dotnet build --no-restore --configuration Release --nologo -p:AssemblyVersion=${{ env.tag }}
- name: Publish Version
uses: PunishXIV/dynamis-action@v1
id: dynamis
with:
plugin_id: 52
internal_name: 'HoardFarm'
version_number: ${{ env.tag }}
path: 'HoardFarm/bin/x64/Release/HoardFarm/latest.zip'
type: 'latest'
dalamud_version: '10'
env:
PUBLISHER_KEY: ${{ secrets.PUBLISHER_KEY }}