Switching path of the build

This commit is contained in:
defnotken
2025-08-27 08:56:29 -05:00
parent ad74729c4a
commit 2b67f44788

View File

@@ -7,7 +7,6 @@ on:
env: env:
PLUGIN_NAME: LightlessSync PLUGIN_NAME: LightlessSync
DOTNET_VERSION: 9.x DOTNET_VERSION: 9.x
SOLUTION_PATH: LightlessSync.sln
jobs: jobs:
tag-and-release: tag-and-release:
@@ -37,7 +36,7 @@ jobs:
run: dotnet build --configuration Release --no-restore run: dotnet build --configuration Release --no-restore
- name: Publish LightlessSync - name: Publish LightlessSync
run: dotnet publish --configuration Release --no-build --output publish_output run: dotnet publish --configuration Release --no-build
- name: Get version - name: Get version
id: package_version id: package_version
@@ -49,6 +48,10 @@ jobs:
run: | run: |
echo "Version: ${{ steps.package_version.outputs.version }}" echo "Version: ${{ steps.package_version.outputs.version }}"
- name: Prepare Lightless Client
run: |
Compress-Archive -Path ${{ env.PLUGIN_NAME }}/bin/x64/Release/* -DestinationPath output/LightlessClient.zip
- name: Create Git tag if not exists - name: Create Git tag if not exists
shell: pwsh shell: pwsh
run: | run: |
@@ -64,11 +67,6 @@ jobs:
Write-Host "Tag $tag already exists. Skipping tag creation." Write-Host "Tag $tag already exists. Skipping tag creation."
} }
- name: Zip publish_output
shell: pwsh
run: |
Compress-Archive -Path publish_output\* -DestinationPath LightlessSync.zip
- name: Create GitHub Release - name: Create GitHub Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
@@ -76,6 +74,6 @@ jobs:
name: Release ${{ steps.package_version.outputs.version }} name: Release ${{ steps.package_version.outputs.version }}
draft: false draft: false
prerelease: false prerelease: false
files: LightlessSync.zip files: LightlessClient.zip
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}