Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
anya-hichu committed Aug 7, 2024
1 parent bfd7c60 commit 3a32227
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 11 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/dotnet.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET
name: Build

on:
push:
Expand All @@ -17,8 +14,6 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true

- name: Set up .NET
uses: actions/setup-dotnet@v3
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Publish

on:
push:
tags:
- "v*.*.*.*"

jobs:
Build:
runs-on: ubuntu-latest
env:
DALAMUD_HOME: /tmp/dalamud
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Get Tag Name
run: echo "tag=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_ENV

- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Download Dalamud Latest
run: |
wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O ${{ env.DALAMUD_HOME }}.zip
unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }}
- name: Restore Project
run: dotnet restore

- name: Build Project
run: dotnet build --configuration Release ChatContext/ChatContext.csproj -p:AssemblyVersion=${{ env.tag }}

#- name: Publish Version
# uses: PunishXIV/dynamis-action@v1
# id: dynamis
# with:
# plugin_id: x
# internal_name: "ChatContext"
# version_number: ${{ env.tag }}
# path: "ChatContext/bin/Release/ChatContext/latest.zip"
# type: "latest"
# dalamud_version: "10"
# env:
# PUBLISHER_KEY: ${{ secrets.PUBLISHER_KEY }}
2 changes: 1 addition & 1 deletion ChatContext/ChatContext.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="Dalamud.Plugin.Bootstrap.targets"/>

<PropertyGroup>
<Version>1.0.0.0</Version>
<Version>0.0.0.0</Version>
<Description>Dalamud plugin to add sender target to chat messages.</Description>
<PackageProjectUrl>https://github.com/anya-hichu/ChatContext</PackageProjectUrl>
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
Expand Down
7 changes: 3 additions & 4 deletions ChatContext/ChatContext.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"Author": "Anya Hichu",
"Name": "ChatContext",
"Punchline": "Add sender target info in chat messages.",
"Description": "Add sender target info in chat messages.",
"Punchline": "Add sender target name in chat messages.",
"Description": "Add sender target name in chat messages and displays nearly player targets",
"ApplicableVersion": "any",
"Tags": [
"chat",
"context",
"target"
],
"IconUrl": "https://raw.githubusercontent.com/anya-hichu/ChatContext/master/Data/icon.png"
]
}

0 comments on commit 3a32227

Please sign in to comment.