Skip to content

Commit

Permalink
Remove referencia ao enviroment NuGet
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurício Bernardo committed Nov 21, 2024
1 parent f3a0197 commit 426fa2b
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions .github/workflows/DFe.NET_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,6 @@ jobs:
if: github.event_name == 'push' || github.event.inputs.nugetdeploy == 'true'
runs-on: ${{ 'ubuntu-latest' }}
steps:
- name: Criar Deployment
id: create_deployment
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
-d '{
"ref": "${{ github.ref }}",
"environment": "NuGet",
"description": "Deploy de pacotes para o NuGet",
"required_contexts": []
}' \
https://api.github.com/repos/${{ github.repository }}/deployments
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -158,18 +144,4 @@ jobs:
DISCORD_MENSAGEM: ${{ needs.build.outputs.version }}
uses: Ilshidur/action-discord@master
with:
args: 'Lançado Zeus DFe.NET versão {{ DISCORD_MENSAGEM }} no Nuget! Acesse: https://www.nuget.org/profiles/ZeusAutomacao'

- name: Atualizar Status do Deployment
if: success()
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
-d '{
"state": "success",
"environment": "NuGet",
"description": "Deploy concluído com sucesso.",
"log_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}' \
https://api.github.com/repos/${{ github.repository }}/deployments/${{ steps.create_deployment.outputs.id }}/statuses
args: 'Lançado Zeus DFe.NET versão {{ DISCORD_MENSAGEM }} no Nuget! Acesse: https://www.nuget.org/profiles/ZeusAutomacao'

0 comments on commit 426fa2b

Please sign in to comment.