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

Commit

Permalink
support testing tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Jan 2, 2024
1 parent 98706c6 commit 48a012f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ jobs:
- name: Build Project
run: dotnet build --configuration Release RotationSolver/RotationSolver.csproj -p:AssemblyVersion=${{ env.tag }}

- name: Get Tag Name
run: |
tag=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')
echo "tag=$tag" >> $GITHUB_ENV
if [[ "$tag" == *"-test" ]]; then
branch="testing"
tag=$(echo $tag | sed 's/-test//')
else
branch="latest"
fi
echo "branch=$branch" >> $GITHUB_ENV
echo "tag=$tag" >> $GITHUB_ENV
- name: Publish Version
uses: PunishXIV/dynamis-action@v1
id: dynamis
Expand All @@ -43,7 +57,7 @@ jobs:
internal_name: 'RotationSolver'
version_number: ${{ env.tag }}
path: 'RotationSolver/bin/Release/RotationSolver/latest.zip'
type: 'latest'
type: '${{ env.branch }}'
dalamud_version: '9'
env:
PUBLISHER_KEY: ${{ secrets.PUBLISHER_KEY }}

0 comments on commit 48a012f

Please sign in to comment.