Skip to content

Commit

Permalink
build: try to release on every build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianSauer committed Mar 19, 2024
1 parent a76ce4d commit edd9ce2
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,20 @@ jobs:
run: dotnet build --configuration Release --no-restore
working-directory: AutomaticInterface
- name: Nuget
run: nuget push **\release\**\AutomaticInterface.*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
run: nuget push **\release\**\AutomaticInterface.*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
- name: Get version
id: package_version
uses: KageKirin/get-csproj-version@v0
with:
file: AutomaticInterface/AutomaticInterface/AutomaticInterface.csproj
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.package_version.version }}
release_name: Release ${{ steps.package_version.version }}
body: See Readme
draft: false
prerelease: false

0 comments on commit edd9ce2

Please sign in to comment.