Skip to content

Commit b8113ab

Browse files
authored
Create publish.yml
1 parent 67092db commit b8113ab

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build & Publish to Dynamis Latest
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
Build:
9+
runs-on: ubuntu-latest
10+
env:
11+
DALAMUD_HOME: /tmp/dalamud
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: true
17+
18+
- name: Set up .NET
19+
uses: actions/setup-dotnet@v3
20+
with:
21+
dotnet-version: 8.0.x
22+
23+
- name: Download Dalamud Latest
24+
run: |
25+
wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O ${{ env.DALAMUD_HOME }}.zip
26+
unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }}
27+
28+
- name: Restore Project
29+
run: dotnet restore
30+
31+
- name: Build Project
32+
run: dotnet build --configuration Release MBT/MBT.csproj -p:AssemblyVersion=${{ github.ref_name }}
33+
34+
- name: Publish Version
35+
uses: PunishXIV/dynamis-action@v1
36+
id: dynamis
37+
with:
38+
plugin_id: 59
39+
internal_name: "MBT"
40+
version_number: ${{ github.ref_name }}
41+
path: "MBT/bin/Release/MBT/latest.zip"
42+
type: "latest"
43+
dalamud_version: "10"
44+
changelog: ${{ github.event.release.body }}
45+
env:
46+
PUBLISHER_KEY: ${{ secrets.PUBLISHER_KEY }}

0 commit comments

Comments
 (0)