Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Dec 2, 2023
1 parent 77838fd commit 621b659
Showing 1 changed file with 49 additions and 0 deletions.
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 Automaton/Automaton.csproj -p:AssemblyVersion=${{ env.tag }}

- name: Publish Version
uses: PunishXIV/dynamis-action@v1
id: dynamis
with:
plugin_id: 44
internal_name: 'RotationSolver'
version_number: ${{ env.tag }}
path: 'RotationSolver/bin/Release/RotationSolver/latest.zip'
type: 'latest'
dalamud_version: '9'
env:
PUBLISHER_KEY: ${{ secrets.PUBLISHER_KEY }}

0 comments on commit 621b659

Please sign in to comment.