From 4d81f9c469be2058ab0d0be6b3aab4ec90a5c0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Tue, 19 Nov 2024 16:37:24 -0300 Subject: [PATCH 01/12] =?UTF-8?q?Adicionado=20cria=C3=A7=C3=A3o=20de=20tag?= =?UTF-8?q?=20e=20release=20em=20DFe.NET=5Fbuild.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/DFe.NET_build.yml | 31 ++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index 61c55f8e7..6647f9ad1 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -107,7 +107,36 @@ jobs: run: dotnet nuget push *.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json env: NUGET_AUTH_TOKEN: ${{secrets.NUGET_SECRET_DEPLOY}} - + + - name: Criar Tag + id: create_tag + run: | + curl -X POST \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{ + "tag": "${{ needs.build.outputs.version }}", + "message": "Release versão ${{ needs.build.outputs.version }}", + "object": "${{ github.sha }}", + "type": "commit" + }' \ + https://api.github.com/repos/${{ github.repository }}/git/tags + + - name: Criar Release + id: create_release + run: | + curl -X POST \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{ + "tag_name": "${{ needs.build.outputs.version }}", + "name": "${{ needs.build.outputs.version }}", + "body": "Esta é a release da versão ${{ needs.build.outputs.version }} do Zeus DFe.NET.", + "draft": false, + "prerelease": false + }' \ + https://api.github.com/repos/${{ github.repository }}/releases + - name: Discord notification continue-on-error: true env: From 89cf9bbaf7fcba9845476e4aeee633aa93caff8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Tue, 19 Nov 2024 16:51:08 -0300 Subject: [PATCH 02/12] Adicionado upload dos arquivos zip --- .github/workflows/DFe.NET_build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index 6647f9ad1..4f0d8a734 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -77,12 +77,22 @@ jobs: dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.NFe.NFCe\Zeus.Net.NFe.NFCe.csproj dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.MDFe\Zeus.Net.MDFe.csproj dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.CTe\Zeus.Net.CTe.csproj + + zip -r ${{ github.workspace }}/CteArtefato.zip .\path\to\CTeArtefato + zip -r ${{ github.workspace }}/MdfeArtefato.zip .\path\to\MdfeArtefato + zip -r ${{ github.workspace }}/NfeArtefato.zip .\path\to\NfeArtefato - name: Upload Artifacts uses: actions/upload-artifact@v4 with: name: nupkg path: ${{ github.workspace }}/*.nupkg + + - name: Upload ZIP Files as Assets + uses: actions/upload-artifact@v4 + with: + name: zip-artefatos + path: ${{ github.workspace }}/*.zip deploy: needs: build @@ -136,6 +146,16 @@ jobs: "prerelease": false }' \ https://api.github.com/repos/${{ github.repository }}/releases + + - name: Attach ZIP Files as Assets to Release + run: | + curl -X POST \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -F "file=@${{ github.workspace }}/CteArtefato.zip" \ + -F "file=@${{ github.workspace }}/MdfeArtefato.zip" \ + -F "file=@${{ github.workspace }}/NfeArtefato.zip" \ + -F "file=@${{ github.workspace }}/*.nupkg" \ + https://uploads.github.com/repos/${{ github.repository }}/releases/${{ steps.create_release.outputs.id }}/assets?name=CteArtefato.zip - name: Discord notification continue-on-error: true From 6d850d3d4d8dd6d04591d00ba9c82e4a6f121913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Tue, 19 Nov 2024 17:00:10 -0300 Subject: [PATCH 03/12] =?UTF-8?q?Alterado=20compata=C3=A7=C3=A3o=20dos=20a?= =?UTF-8?q?rquivos=20para=20utilizar=20Compress-Archive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/DFe.NET_build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index 4f0d8a734..8319b6a70 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -78,9 +78,9 @@ jobs: dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.MDFe\Zeus.Net.MDFe.csproj dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.CTe\Zeus.Net.CTe.csproj - zip -r ${{ github.workspace }}/CteArtefato.zip .\path\to\CTeArtefato - zip -r ${{ github.workspace }}/MdfeArtefato.zip .\path\to\MdfeArtefato - zip -r ${{ github.workspace }}/NfeArtefato.zip .\path\to\NfeArtefato + Compress-Archive -Path .\path\to\CTeArtefato -DestinationPath ${{ github.workspace }}\CteArtefato.zip + Compress-Archive -Path .\path\to\MdfeArtefato -DestinationPath ${{ github.workspace }}\MdfeArtefato.zip + Compress-Archive -Path .\path\to\NfeArtefato -DestinationPath ${{ github.workspace }}\NfeArtefato.zip - name: Upload Artifacts uses: actions/upload-artifact@v4 From 880bc79af968fc5b5e6592ec625574c9a44907c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Tue, 19 Nov 2024 17:04:58 -0300 Subject: [PATCH 04/12] Adicionado debug de listar arquivos --- .github/workflows/DFe.NET_build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index 8319b6a70..40b59d433 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -71,6 +71,11 @@ jobs: #- name: Test # run: dotnet test --no-build --verbosity normal + + - name: Listar arquivos para debug + run: | + echo "Arquivos e pastas no workspace:" + dir ${{ github.workspace }} -Recurse - name: Pack run: | From 5120505ed494c72c5482ca1eda686f3374632c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Tue, 19 Nov 2024 17:23:42 -0300 Subject: [PATCH 05/12] Cria artefatos para zipar --- .github/workflows/DFe.NET_build.yml | 49 +++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index 40b59d433..af7569d9b 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -71,21 +71,52 @@ jobs: #- name: Test # run: dotnet test --no-build --verbosity normal - - - name: Listar arquivos para debug - run: | - echo "Arquivos e pastas no workspace:" - dir ${{ github.workspace }} -Recurse - - name: Pack + - name: Organizar arquivos de artefatos + run: | + mkdir -p CTeArtefato + mkdir -p MdfeArtefato + mkdir -p NfeArtefato + + # Organizar arquivos para NFeArtefato + cp NuGet/Zeus.Net.NFe.NFCe/Zeus.Net.NFe.NFCe.nuspec NfeArtefato/ + cp ${{ github.workspace }}/*.nupkg NfeArtefato/ + mkdir -p NfeArtefato/lib/net40 + cp NFe.Wsdl/bin/Release/net40/NFe.Wsdl.dll NfeArtefato/lib/net40/ + cp NFe.Utils/bin/Release/net40/NFe.Utils.dll NfeArtefato/lib/net40/ + cp NFe.Servicos/bin/Release/net40/NFe.Servicos.dll NfeArtefato/lib/net40/ + cp NFe.Classes/bin/Release/net40/NFe.Classes.dll NfeArtefato/lib/net40/ + cp DFe.Classes/bin/Release/net40/DFe.Classes.dll NfeArtefato/lib/net40/ + + # Organizar arquivos para MDFeArtefato + cp NuGet/Zeus.Net.MDFe/Zeus.Net.MDFe.nuspec MdfeArtefato/ + cp ${{ github.workspace }}/*.nupkg MdfeArtefato/ + mkdir -p MdfeArtefato/lib/net40 + cp MDFe.Wsdl/bin/Release/net40/MDFe.Wsdl.dll MdfeArtefato/lib/net40/ + cp MDFe.Utils/bin/Release/net40/MDFe.Utils.dll MdfeArtefato/lib/net40/ + cp MDFe.Servicos/bin/Release/net40/MDFe.Servicos.dll MdfeArtefato/lib/net40/ + cp MDFe.Classes/bin/Release/net40/MDFe.Classes.dll MdfeArtefato/lib/net40/ + cp DFe.Classes/bin/Release/net40/DFe.Classes.dll MdfeArtefato/lib/net40/ + + # Organizar arquivos para CTeArtefato + cp NuGet/Zeus.Net.CTe/Zeus.Net.CTe.nuspec CTeArtefato/ + cp ${{ github.workspace }}/*.nupkg CTeArtefato/ + mkdir -p CTeArtefato/lib/net40 + cp CTe.Wsdl/bin/Release/net40/CTe.Wsdl.dll CTeArtefato/lib/net40/ + cp CTe.Utils/bin/Release/net40/CTe.Utils.dll CTeArtefato/lib/net40/ + cp CTe.Servicos/bin/Release/net40/CTe.Servicos.dll CTeArtefato/lib/net40/ + cp CTe.Classes/bin/Release/net40/CTe.Classes.dll CTeArtefato/lib/net40/ + cp DFe.Classes/bin/Release/net40/DFe.Classes.dll CTeArtefato/lib/net40/ + + - name: Packe e compactar artefatos run: | dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.NFe.NFCe\Zeus.Net.NFe.NFCe.csproj dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.MDFe\Zeus.Net.MDFe.csproj dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.CTe\Zeus.Net.CTe.csproj - Compress-Archive -Path .\path\to\CTeArtefato -DestinationPath ${{ github.workspace }}\CteArtefato.zip - Compress-Archive -Path .\path\to\MdfeArtefato -DestinationPath ${{ github.workspace }}\MdfeArtefato.zip - Compress-Archive -Path .\path\to\NfeArtefato -DestinationPath ${{ github.workspace }}\NfeArtefato.zip + Compress-Archive -Path ./CTeArtefato -DestinationPath ${{ github.workspace }}/CTeArtefato.zip + Compress-Archive -Path ./MdfeArtefato -DestinationPath ${{ github.workspace }}/MdfeArtefato.zip + Compress-Archive -Path ./NfeArtefato -DestinationPath ${{ github.workspace }}/NfeArtefato.zip - name: Upload Artifacts uses: actions/upload-artifact@v4 From b70dfadfb51664949e3ccc9fecb0a362e772abf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Thu, 21 Nov 2024 09:43:12 -0300 Subject: [PATCH 06/12] Remove attachemts de .zip --- .github/workflows/DFe.NET_build.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index af7569d9b..abc6e2b74 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -113,22 +113,12 @@ jobs: dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.NFe.NFCe\Zeus.Net.NFe.NFCe.csproj dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.MDFe\Zeus.Net.MDFe.csproj dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.CTe\Zeus.Net.CTe.csproj - - Compress-Archive -Path ./CTeArtefato -DestinationPath ${{ github.workspace }}/CTeArtefato.zip - Compress-Archive -Path ./MdfeArtefato -DestinationPath ${{ github.workspace }}/MdfeArtefato.zip - Compress-Archive -Path ./NfeArtefato -DestinationPath ${{ github.workspace }}/NfeArtefato.zip - name: Upload Artifacts uses: actions/upload-artifact@v4 with: name: nupkg path: ${{ github.workspace }}/*.nupkg - - - name: Upload ZIP Files as Assets - uses: actions/upload-artifact@v4 - with: - name: zip-artefatos - path: ${{ github.workspace }}/*.zip deploy: needs: build @@ -182,16 +172,6 @@ jobs: "prerelease": false }' \ https://api.github.com/repos/${{ github.repository }}/releases - - - name: Attach ZIP Files as Assets to Release - run: | - curl -X POST \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -F "file=@${{ github.workspace }}/CteArtefato.zip" \ - -F "file=@${{ github.workspace }}/MdfeArtefato.zip" \ - -F "file=@${{ github.workspace }}/NfeArtefato.zip" \ - -F "file=@${{ github.workspace }}/*.nupkg" \ - https://uploads.github.com/repos/${{ github.repository }}/releases/${{ steps.create_release.outputs.id }}/assets?name=CteArtefato.zip - name: Discord notification continue-on-error: true From 345b18584adf2e6206ecee6de7444e17c20aeb54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Thu, 21 Nov 2024 09:45:57 -0300 Subject: [PATCH 07/12] =?UTF-8?q?Remove=20organiza=C3=A7=C3=A3o=20de=20arq?= =?UTF-8?q?uivos=20e=20artefatos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/DFe.NET_build.yml | 38 +---------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index abc6e2b74..946b0f93e 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -71,44 +71,8 @@ jobs: #- name: Test # run: dotnet test --no-build --verbosity normal - - - name: Organizar arquivos de artefatos - run: | - mkdir -p CTeArtefato - mkdir -p MdfeArtefato - mkdir -p NfeArtefato - - # Organizar arquivos para NFeArtefato - cp NuGet/Zeus.Net.NFe.NFCe/Zeus.Net.NFe.NFCe.nuspec NfeArtefato/ - cp ${{ github.workspace }}/*.nupkg NfeArtefato/ - mkdir -p NfeArtefato/lib/net40 - cp NFe.Wsdl/bin/Release/net40/NFe.Wsdl.dll NfeArtefato/lib/net40/ - cp NFe.Utils/bin/Release/net40/NFe.Utils.dll NfeArtefato/lib/net40/ - cp NFe.Servicos/bin/Release/net40/NFe.Servicos.dll NfeArtefato/lib/net40/ - cp NFe.Classes/bin/Release/net40/NFe.Classes.dll NfeArtefato/lib/net40/ - cp DFe.Classes/bin/Release/net40/DFe.Classes.dll NfeArtefato/lib/net40/ - - # Organizar arquivos para MDFeArtefato - cp NuGet/Zeus.Net.MDFe/Zeus.Net.MDFe.nuspec MdfeArtefato/ - cp ${{ github.workspace }}/*.nupkg MdfeArtefato/ - mkdir -p MdfeArtefato/lib/net40 - cp MDFe.Wsdl/bin/Release/net40/MDFe.Wsdl.dll MdfeArtefato/lib/net40/ - cp MDFe.Utils/bin/Release/net40/MDFe.Utils.dll MdfeArtefato/lib/net40/ - cp MDFe.Servicos/bin/Release/net40/MDFe.Servicos.dll MdfeArtefato/lib/net40/ - cp MDFe.Classes/bin/Release/net40/MDFe.Classes.dll MdfeArtefato/lib/net40/ - cp DFe.Classes/bin/Release/net40/DFe.Classes.dll MdfeArtefato/lib/net40/ - - # Organizar arquivos para CTeArtefato - cp NuGet/Zeus.Net.CTe/Zeus.Net.CTe.nuspec CTeArtefato/ - cp ${{ github.workspace }}/*.nupkg CTeArtefato/ - mkdir -p CTeArtefato/lib/net40 - cp CTe.Wsdl/bin/Release/net40/CTe.Wsdl.dll CTeArtefato/lib/net40/ - cp CTe.Utils/bin/Release/net40/CTe.Utils.dll CTeArtefato/lib/net40/ - cp CTe.Servicos/bin/Release/net40/CTe.Servicos.dll CTeArtefato/lib/net40/ - cp CTe.Classes/bin/Release/net40/CTe.Classes.dll CTeArtefato/lib/net40/ - cp DFe.Classes/bin/Release/net40/DFe.Classes.dll CTeArtefato/lib/net40/ - - name: Packe e compactar artefatos + - name: Packe run: | dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.NFe.NFCe\Zeus.Net.NFe.NFCe.csproj dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.MDFe\Zeus.Net.MDFe.csproj From e374c8d023910fa11defa62f3ca324ce58a99c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Thu, 21 Nov 2024 09:47:03 -0300 Subject: [PATCH 08/12] Corrige texto de Packe para Pack --- .github/workflows/DFe.NET_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index 946b0f93e..4153c2ced 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -72,7 +72,7 @@ jobs: #- name: Test # run: dotnet test --no-build --verbosity normal - - name: Packe + - name: Pack run: | dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.NFe.NFCe\Zeus.Net.NFe.NFCe.csproj dotnet pack -o ${{ github.workspace }} -v minimal -c Release -p:NuspecProperties=version=${{ steps.date.outputs.date }} -p:PackageVersion=${{ steps.date.outputs.date }} NuGet\Zeus.Net.MDFe\Zeus.Net.MDFe.csproj From 78a2c9ec67a23487b5e2e5a95567ce148352c3a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Thu, 21 Nov 2024 09:53:23 -0300 Subject: [PATCH 09/12] =?UTF-8?q?Ajusta=20descri=C3=A7=C3=A3o=20da=20relea?= =?UTF-8?q?se?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/DFe.NET_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index 4153c2ced..519771787 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -131,7 +131,7 @@ jobs: -d '{ "tag_name": "${{ needs.build.outputs.version }}", "name": "${{ needs.build.outputs.version }}", - "body": "Esta é a release da versão ${{ needs.build.outputs.version }} do Zeus DFe.NET.", + "body": "Esta é a release da versão ${{ needs.build.outputs.version }} do Zeus DFe.NET.\n\n### Links dos pacotes no NuGet:\n- [Zeus.NFe.NFCe](https://www.nuget.org/packages/Zeus.Net.NFe.NFCe/)\n- [Zeus.MDFe](https://www.nuget.org/packages/Zeus.Net.MDFe/)\n- [Zeus.CTe](https://www.nuget.org/packages/Zeus.Net.CTe/)", "draft": false, "prerelease": false }' \ From 9302b63902d3494952c4bb8495e910603a0f5918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Thu, 21 Nov 2024 10:18:25 -0300 Subject: [PATCH 10/12] =?UTF-8?q?Adicionado=20nos=20links=20dos=20pacotes?= =?UTF-8?q?=20a=20ves=C3=A3o=20correspondente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/DFe.NET_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index 519771787..d5130006a 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -131,7 +131,7 @@ jobs: -d '{ "tag_name": "${{ needs.build.outputs.version }}", "name": "${{ needs.build.outputs.version }}", - "body": "Esta é a release da versão ${{ needs.build.outputs.version }} do Zeus DFe.NET.\n\n### Links dos pacotes no NuGet:\n- [Zeus.NFe.NFCe](https://www.nuget.org/packages/Zeus.Net.NFe.NFCe/)\n- [Zeus.MDFe](https://www.nuget.org/packages/Zeus.Net.MDFe/)\n- [Zeus.CTe](https://www.nuget.org/packages/Zeus.Net.CTe/)", + "body": "Esta é a release da versão ${{ needs.build.outputs.version }} do Zeus DFe.NET.\n\n### Links dos pacotes no NuGet:\n- [Zeus.NFe.NFCe](https://www.nuget.org/packages/Zeus.Net.NFe.NFCe/${{ needs.build.outputs.version }})\n- [Zeus.MDFe](https://www.nuget.org/packages/Zeus.Net.MDFe/${{ needs.build.outputs.version }})\n- [Zeus.CTe](https://www.nuget.org/packages/Zeus.Net.CTe/${{ needs.build.outputs.version }})", "draft": false, "prerelease": false }' \ From f3a0197dc08ce6cbd58744a5ccad3f5bc72f728b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Thu, 21 Nov 2024 10:41:26 -0300 Subject: [PATCH 11/12] =?UTF-8?q?Ajustado=20visualiza=C3=A7=C3=A3o=20Deplo?= =?UTF-8?q?yments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/DFe.NET_build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index d5130006a..1f63b6a04 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -89,6 +89,20 @@ 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: @@ -145,3 +159,17 @@ jobs: 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 \ No newline at end of file From 426fa2b40463cd5508a3a340d21f6008025b27f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Bernardo?= <mauriciobernardodesouza2@hotmail.com> Date: Thu, 21 Nov 2024 10:59:18 -0300 Subject: [PATCH 12/12] Remove referencia ao enviroment NuGet --- .github/workflows/DFe.NET_build.yml | 30 +---------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/.github/workflows/DFe.NET_build.yml b/.github/workflows/DFe.NET_build.yml index 1f63b6a04..63317e9d6 100644 --- a/.github/workflows/DFe.NET_build.yml +++ b/.github/workflows/DFe.NET_build.yml @@ -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: @@ -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 \ No newline at end of file + args: 'Lançado Zeus DFe.NET versão {{ DISCORD_MENSAGEM }} no Nuget! Acesse: https://www.nuget.org/profiles/ZeusAutomacao' \ No newline at end of file