Skip to content

Commit be32284

Browse files
committed
Adicionado notificação no discord quando publicado nova versão.
1 parent b6a6471 commit be32284

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,15 @@ jobs:
9999
run: |
100100
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
101101
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
102-
}
102+
}
103+
104+
webhook:
105+
runs-on: ubuntu-latest
106+
needs: [ deploy ]
107+
env:
108+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
109+
steps:
110+
- name: Discord notification
111+
uses: Ilshidur/action-discord@0.4.0
112+
with:
113+
args: 'Uma nova versão do **OpenAC.Net.NFSe** foi publicada! Confira agora em [NuGet.org](https://www.nuget.org/packages/OpenAC.Net.NFSe).'

0 commit comments

Comments
 (0)