Skip to content

Commit

Permalink
Update publish-xat.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Minmoose committed Aug 5, 2024
1 parent cf389e4 commit 4a50286
Showing 1 changed file with 2 additions and 34 deletions.
36 changes: 2 additions & 34 deletions .github/workflows/publish-xat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,7 @@ jobs:
dotnet-version: 8.0.x

- name: Deploy XAT
run: dotnet publish XAT/XAT.sln /p:DebugType=None /p:DebugSymbols=false /p:PublishProfile=FinalPublish /p:Version=${{ steps.version-date.outputs.formattedTime }}

- name: Download Dalamud
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev"
- name: Deploy XAT Dalamud
run: dotnet publish Dalamud/XAT.Plugin.sln /p:DebugType=None /p:DebugSymbols=false /p:PublishProfile=FinalPublish /p:Version=${{ steps.version-date.outputs.formattedTime }}

- name: Write version into Dalamud json
run: |
$ver = '${{ steps.version-date.outputs.formattedTime }}'
$path = './publish-dalamud/XAT.Plugin.json'
$content = get-content -path $path
$content = $content -replace '1.0.0.0',$ver
set-content -Path $path -Value $content
run: dotnet publish XAT/XAT.sln /p:DebugType=None /p:DebugSymbols=false /p:PublishProfile=FinalPublish.pubxml /p:Version=${{ steps.version-date.outputs.formattedTime }}

- name: Zip Standalone Release
uses: TheDoctor0/zip-release@0.6.0
Expand All @@ -51,13 +35,6 @@ jobs:
directory: './publish-standalone/'
exclusions: '*.pdb* *.xml*'

- name: Zip Dalamud Release
uses: TheDoctor0/zip-release@0.6.0
with:
filename: '../XAT-Dalamud-Plugin.zip'
directory: './publish-dalamud/'
exclusions: '*.pdb* *.xml*'

- name: Write out Blender version
run: |
$ver = '${{ steps.version-date.outputs.formattedTime }}'
Expand All @@ -78,21 +55,12 @@ jobs:
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "XAT.zip,XAT-Blender-Addon.zip,XAT-Dalamud-Plugin.zip"
artifacts: "XAT.zip,XAT-Blender-Addon.zip"
name: ${{ steps.version-date.outputs.formattedTime }}
tag: v${{ steps.version-date.outputs.formattedTime }}
draft: false
token: ${{ secrets.GITHUB_TOKEN }}

- name: Write out Dalamud version
run: |
$ver = '${{ steps.version-date.outputs.formattedTime }}'
$path = './base_repo.json'
$new_path = './repo.json'
$content = get-content -path $path
$content = $content -replace '1.0.0.0',$ver
set-content -Path $new_path -Value $content
- name: Commit repo.json
run: |
git config --global user.name "Actions User"
Expand Down

0 comments on commit 4a50286

Please sign in to comment.