From 98761fc91d62b261c93f469fe2aead07a7264e95 Mon Sep 17 00:00:00 2001 From: SocksOnHead Date: Thu, 24 Oct 2024 19:10:12 +0200 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 32c5e31..13f7fe2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -14,6 +14,25 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 # required for github-action-get-previous-tag + + - name: Get previous tag + id: previoustag + uses: 'WyriHaximus/github-action-get-previous-tag@v1' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Get next minor version + id: semver + uses: 'WyriHaximus/github-action-next-semvers@v1' + with: + version: ${{ steps.previoustag.outputs.tag }} + + - name: Set version + id: package_version + uses: KageKirin/set-csproj-version@v0 + with: + file: ./Bot/Lunaris2.csproj + version: ${{ steps.semver.outputs.patch }} - name: Setup .NET uses: actions/setup-dotnet@v1 @@ -32,18 +51,6 @@ jobs: - name: Zip the build run: 7z a -tzip ./out/Lunaris.zip ./out/* - - name: Get previous tag - id: previoustag - uses: 'WyriHaximus/github-action-get-previous-tag@v1' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Get next minor version - id: semver - uses: 'WyriHaximus/github-action-next-semvers@v1' - with: - version: ${{ steps.previoustag.outputs.tag }} - - name: Create Release id: create_release uses: actions/create-release@v1