Skip to content

Commit

Permalink
Fix release action (dotnet#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
galvesribeiro authored Jul 19, 2022
1 parent 99cd142 commit 3bb6a22
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ jobs:
run: |
dotnet nuget push ./packages/Docker.DotNet.*.nupkg --skip-duplicate -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
- name: Create Release
uses: actions/create-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: actions/github-script@v5
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
script: |
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: '${{ context.ref }}',
name: 'Release ${{ context.ref }}',
draft: false,
prerelease: false,
generate_release_notes: true
})

0 comments on commit 3bb6a22

Please sign in to comment.