Skip to content

Commit

Permalink
Fixed version
Browse files Browse the repository at this point in the history
  • Loading branch information
umerfaruk committed Sep 11, 2024
1 parent 468fe78 commit 1877148
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: montudor/action-zip@v1

- name: Build
run: dotnet build ./src/RekhtaDownloader/RekhtaDownloader.csproj --configuration Release -p:Version=1.0.1.${{ github.run_number }}
run: dotnet build ./src/RekhtaDownloader/RekhtaDownloader.csproj --configuration Release -p:Version=1.1.${{ github.run_number }}

- name: Publish
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
Expand All @@ -31,23 +31,23 @@ jobs:

- name: Zip win-x64 artifacts
working-directory: ./src/RekhtaDownloader.Console/bin/Release/net8.0/win-x64/publish
run: zip -qq -r release-win-x64-1.0.1.${{ github.run_number }}.zip .
run: zip -qq -r release-win-x64-1.1.${{ github.run_number }}.zip .

- name: Publish win-x86 App
run: dotnet publish ./src/RekhtaDownloader.Console/RekhtaDownloader.Console.csproj -r win-x86 -c Release --self-contained

- name: Zip win-x86 artifacts
working-directory: ./src/RekhtaDownloader.Console/bin/Release/net8.0/win-x86/publish
run: zip -qq -r release-win-x86-1.0.1.${{ github.run_number }}.zip .
run: zip -qq -r release-win-x86-1.1.${{ github.run_number }}.zip .

- name: Create Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: 1.0.1.${{ github.run_number }}
tag_name: 1.0.1.${{ github.run_number }}
release_name: 1.1.${{ github.run_number }}
tag_name: 1.1.${{ github.run_number }}
env:
GITHUB_TOKEN: ${{ github.token }}

Expand All @@ -57,8 +57,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./src/RekhtaDownloader.Console/bin/Release/net8.0/win-x64/publish/release-win-x64-1.0.1.${{ github.run_number }}.zip
asset_name: release-win-x64-1.0.1.${{ github.run_number }}.zip
asset_path: ./src/RekhtaDownloader.Console/bin/Release/net8.0/win-x64/publish/release-win-x64-1.1.${{ github.run_number }}.zip
asset_name: release-win-x64-1.1.${{ github.run_number }}.zip
asset_content_type: application/zip

- name: Upload windows x86 artifact
Expand All @@ -67,6 +67,6 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./src/RekhtaDownloader.Console/bin/Release/net8.0/win-x86/publish/release-win-x86-1.0.1.${{ github.run_number }}.zip
asset_name: release-win-x86-1.0.1.${{ github.run_number }}.zip
asset_path: ./src/RekhtaDownloader.Console/bin/Release/net8.0/win-x86/publish/release-win-x86-1.1.${{ github.run_number }}.zip
asset_name: release-win-x86-1.1.${{ github.run_number }}.zip
asset_content_type: application/zip

0 comments on commit 1877148

Please sign in to comment.