diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index c6518e8..d42f1d0 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -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}} \ No newline at end of file + 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 \ No newline at end of file