Skip to content

Commit

Permalink
IcWa - Update publish.yaml for versionning on plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitoWater authored Jul 4, 2024
1 parent b206554 commit a575fc1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
runs-on: windows-latest

steps:
- name: Get Environment Variables
run: |
$tag = "${{ github.ref }}" -replace 'refs/tags/', ''
"tag=$tag" | Out-File -Append -FilePath $Env:GITHUB_EN
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
Expand All @@ -21,7 +26,7 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
run: dotnet build --no-restore -p:AssemblyVersion=${{ env.tag }}
- name: Zip Plugin
run: Compress-Archive -Path .\bin\Debug\net8.0-windows\* -DestinationPath .\bin\EasyZoomReborn.zip
- name: Publish Plugin
Expand Down

0 comments on commit a575fc1

Please sign in to comment.