Skip to content

Commit

Permalink
Revert "feito mudança projetos e build"
Browse files Browse the repository at this point in the history
This reverts commit 8512d39.
  • Loading branch information
Valmir-Cunha committed Jul 4, 2024
1 parent 14e0cf3 commit 9187809
Show file tree
Hide file tree
Showing 11 changed files with 160 additions and 37 deletions.
118 changes: 118 additions & 0 deletions .github/workflows/DFe.NET_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: DFe.NET_build

on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
nugetdeploy:
type: boolean
description: 'Deploy Nuget ?'
push:
branches:
- 'master'
pull_request:
types: [opened, reopened]
branches:
- 'master'
jobs:
build:
runs-on: ${{ matrix.os }}
outputs:
version: ${{ steps.date.outputs.date }}
strategy:
matrix:
# os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ windows-2022 ]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setando Versao
id: date
run: echo "::set-output name=date::$(date +'%Y.%m.%d.%H%M')"

- name: Versao
run: echo ${{ steps.date.outputs.date }}

- name: Setup .NET 6.0.x
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x

- name: Build/Restore Base
run: |
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\DFe.Classes\DFe.Classes.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\DFe.Utils\DFe.Utils.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\DFe.Wsdl\DFe.Wsdl.csproj" -c "Release"
- name: Build/Restore NFe
run: |
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\NFe.Classes\NFe.Classes.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\NFe.Servicos\NFe.Servicos.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\NFe.Utils\NFe.Utils.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\NFe.Wsdl\NFe.Wsdl.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\NFe.Wsdl.Standard\NFe.Wsdl.Standard.csproj" -c "Release"
- name: Build/Restore MDFe
run: |
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\MDFe.Classes\MDFe.Classes.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\MDFe.Servicos\MDFe.Servicos.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\MDFe.Utils\MDFe.Utils.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\MDFe.Wsdl\MDFe.Wsdl.csproj" -c "Release"
- name: Build/Restore MDFe
run: |
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\CTe.Classes\CTe.Classes.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\CTe.Servicos\CTe.Servicos.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\CTe.Utils\CTe.Utils.csproj" -c "Release"
dotnet build -p:Version=${{ steps.date.outputs.date }} ".\CTe.Wsdl\CTe.Wsdl.csproj" -c "Release"
#- name: Test
# run: dotnet test --no-build --verbosity normal

- 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
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
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: nupkg
path: ${{ github.workspace }}/*.nupkg

deploy:
needs: build
if: github.event_name == 'push' || github.event.inputs.nugetdeploy == 'true'
runs-on: ${{ 'ubuntu-latest' }}
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: nupkg
path: ${{ github.workspace }}

- name: List Artifacts
run: dir

- name: Setup Nuget
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x

- name: Push to NuGet Feed
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: Discord notification
continue-on-error: true
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
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/ZeusNfeNfce'
8 changes: 4 additions & 4 deletions .github/workflows/ZeusFiscal_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ jobs:

- 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\Hercules.NET.NFe.NFCe\Hercules.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\Hercules.NET.MDFe\Hercules.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\Hercules.NET.CTe\Hercules.NET.CTe.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.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
- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -116,4 +116,4 @@ jobs:
DISCORD_MENSAGEM: ${{ needs.build.outputs.version }}
uses: Ilshidur/action-discord@master
with:
args: 'Lançado Hercules.NET/ZeusFiscal versão {{ DISCORD_MENSAGEM }} no Nuget! Acesse: https://www.nuget.org/profiles/Hercules.NET'
args: 'Lançado ZeusFiscal versão {{ DISCORD_MENSAGEM }} no Nuget! Acesse: https://www.nuget.org/profiles/Hercules.NET'
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Configurations>Release</Configurations>
<NoBuild>true</NoBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NuspecFile>Hercules.NET.CTe.nuspec</NuspecFile>
<NuspecFile>Zeus.Net.CTe.nuspec</NuspecFile>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Hercules.NET.CTe</id>
<id>Zeus.Net.CTe</id>
<version>$version$</version>
<title>Hercules.NET CT-e</title>
<authors>Hercules.NET</authors>
<owners>Hercules.NET</owners>
<projectUrl>https://github.com/Hercules-NET/ZeusFiscal</projectUrl>
<iconUrl>https://avatars.githubusercontent.com/u/165974473</iconUrl>
<title>Zeus CT-e (x86/x64)</title>
<authors>Zeus</authors>
<owners>Zeus</owners>
<projectUrl>https://github.com/ZeusAutomacao/DFe.NET</projectUrl>
<iconUrl>https://avatars0.githubusercontent.com/u/324626879?s=200&amp;v=4</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Biblioteca para geração de CT-e.</description>
<releaseNotes />
<copyright>Hercules.NET</copyright>
<copyright>zeus</copyright>
<language>pt-BR</language>
<tags>df-e dfe cte ct-e</tags>
</metadata>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Configurations>Release</Configurations>
<NoBuild>true</NoBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NuspecFile>Hercules.NET.MDFe.nuspec</NuspecFile>
<NuspecFile>Zeus.Net.MDFe.nuspec</NuspecFile>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Hercules.NET.MDFe</id>
<id>Zeus.Net.MDFe</id>
<version>$version$</version>
<title>Hercules.NET MDFe</title>
<authors>Hercules.NET</authors>
<owners>Hercules.NET</owners>
<projectUrl>https://github.com/Hercules-NET/ZeusFiscal</projectUrl>
<iconUrl>https://avatars.githubusercontent.com/u/165974473</iconUrl>
<title>Zeus MDFe (x86/x64)</title>
<authors>Zeus</authors>
<owners>Zeus</owners>
<projectUrl>https://github.com/ZeusAutomacao/DFe.NET</projectUrl>
<iconUrl>https://avatars0.githubusercontent.com/u/324626879?s=200&amp;v=4</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Biblioteca para geração de MDF-e.</description>
<releaseNotes />
<copyright>Hercules.NET</copyright>
<copyright>zeus</copyright>
<language>pt-BR</language>
<tags>df-e dfe mdfe mdf-e</tags>
</metadata>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Hercules.NET.NFe.NFCe.OpenFastReport</id>
<version>$version$</version>
<title>Hercules.NET DANFE NF-e e NFC-e</title>
<authors>Hercules.NET</authors>
<owners>Hercules.NET</owners>
<projectUrl>https://github.com/Hercules-NET/ZeusFiscal</projectUrl>
<iconUrl>https://avatars.githubusercontent.com/u/165974473</iconUrl>
<id>Zeus.Net.NFe.NFCe.OpenFastReport</id>
<version>1.0.1</version>
<title>Zeus NF-e e NFC-e (x86/x64)</title>
<authors>Zeus</authors>
<owners>Zeus</owners>
<projectUrl>https://github.com/ZeusAutomacao/DFe.NET</projectUrl>
<iconUrl>https://avatars0.githubusercontent.com/u/32456879?s=200&amp;v=4</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Biblioteca para impressão nf-e e nfc-e.</description>
<description>Biblioteca para geração de nf-e e nfc-e.</description>
<releaseNotes />
<copyright>Hercules.NET</copyright>
<copyright>zeus</copyright>
<language>pt-BR</language>
<tags>nfc-e nf-e nfce nfe</tags>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Configurations>Release</Configurations>
<NoBuild>true</NoBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NuspecFile>Hercules.NET.NFe.NFCe.nuspec</NuspecFile>
<NuspecFile>Zeus.Net.NFe.NFCe.nuspec</NuspecFile>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Hercules.NET.NFe.NFCe</id>
<id>Zeus.Net.NFe.NFCe</id>
<version>$version$</version>
<title>Hercules.NET NF-e e NFC-e</title>
<authors>Hercules.NET</authors>
<owners>Hercules.NET</owners>
<projectUrl>https://github.com/Hercules-NET/ZeusFiscal</projectUrl>
<iconUrl>https://avatars.githubusercontent.com/u/165974473</iconUrl>
<title>Zeus NF-e e NFC-e (x86/x64)</title>
<authors>Zeus</authors>
<owners>Zeus</owners>
<projectUrl>https://github.com/ZeusAutomacao/DFe.NET</projectUrl>
<iconUrl>https://avatars0.githubusercontent.com/u/32456879?s=200&amp;v=4</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Biblioteca para geração de nf-e e nfc-e.</description>
<releaseNotes />
<copyright>Hercules.NET</copyright>
<copyright>zeus</copyright>
<language>pt-BR</language>
<tags>nfc-e nf-e nfce nfe</tags>
</metadata>
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions Zeus NFe.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeInspection/CodeAnnotations/NamespacesWithAnnotations/=NFe_002EClasses_002EAnnotations/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/CodeAnnotations/NamespacesWithAnnotations/=NFe_002EServicos_002EAnnotations/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/CodeAnnotations/NamespacesWithAnnotations/=NFe_002EUtils_002EAnnotations/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=AutoPropertyCanBeMadeGetOnly_002EGlobal/@EntryIndexedValue">DO_NOT_SHOW</s:String></wpf:ResourceDictionary>

0 comments on commit 9187809

Please sign in to comment.