Skip to content

Commit 426fa2b

Browse files
author
Maurício Bernardo
committed
Remove referencia ao enviroment NuGet
1 parent f3a0197 commit 426fa2b

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

.github/workflows/DFe.NET_build.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,6 @@ jobs:
8989
if: github.event_name == 'push' || github.event.inputs.nugetdeploy == 'true'
9090
runs-on: ${{ 'ubuntu-latest' }}
9191
steps:
92-
- name: Criar Deployment
93-
id: create_deployment
94-
run: |
95-
curl -X POST \
96-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
97-
-H "Accept: application/vnd.github.v3+json" \
98-
-d '{
99-
"ref": "${{ github.ref }}",
100-
"environment": "NuGet",
101-
"description": "Deploy de pacotes para o NuGet",
102-
"required_contexts": []
103-
}' \
104-
https://api.github.com/repos/${{ github.repository }}/deployments
105-
10692
- name: Download Artifacts
10793
uses: actions/download-artifact@v4
10894
with:
@@ -158,18 +144,4 @@ jobs:
158144
DISCORD_MENSAGEM: ${{ needs.build.outputs.version }}
159145
uses: Ilshidur/action-discord@master
160146
with:
161-
args: 'Lançado Zeus DFe.NET versão {{ DISCORD_MENSAGEM }} no Nuget! Acesse: https://www.nuget.org/profiles/ZeusAutomacao'
162-
163-
- name: Atualizar Status do Deployment
164-
if: success()
165-
run: |
166-
curl -X POST \
167-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
168-
-H "Accept: application/vnd.github.v3+json" \
169-
-d '{
170-
"state": "success",
171-
"environment": "NuGet",
172-
"description": "Deploy concluído com sucesso.",
173-
"log_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
174-
}' \
175-
https://api.github.com/repos/${{ github.repository }}/deployments/${{ steps.create_deployment.outputs.id }}/statuses
147+
args: 'Lançado Zeus DFe.NET versão {{ DISCORD_MENSAGEM }} no Nuget! Acesse: https://www.nuget.org/profiles/ZeusAutomacao'

0 commit comments

Comments
 (0)