Skip to content

Commit

Permalink
add tag action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Sep 10, 2024
1 parent 8414592 commit 198a98a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build & Publish to Dynamis

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

jobs:
Build:
runs-on: ubuntu-latest
env:
DALAMUD_HOME: /tmp/dalamud
steps:
- name: Checkout Repository
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: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.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 YesAlready/YesAlready.csproj -p:AssemblyVersion=${{ env.tag }}

- name: Publish Version
uses: PunishXIV/dynamis-action@v1
id: dynamis
with:
plugin_id: 26
internal_name: "YesAlready"
version_number: ${{ env.tag }}
path: "YesAlready/bin/Release/YesAlready/latest.zip"
type: "latest"
dalamud_version: "10"
env:
PUBLISHER_KEY: ${{ secrets.PUBLISHER_KEY }}
2 changes: 1 addition & 1 deletion YesAlready/YesAlready.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Authors>daemitus, croizat</Authors>
<Version>1.7.1.0</Version>
<Version>0.0.0.0</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 198a98a

Please sign in to comment.