Switching path of the build
This commit is contained in:
14
.github/workflows/lightless-tag-and-release.yml
vendored
14
.github/workflows/lightless-tag-and-release.yml
vendored
@@ -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 }}
|
||||||
Reference in New Issue
Block a user