Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CassioJhones committed Oct 14, 2024
1 parent d516772 commit 7934ebc
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Compilação e Teste FolderFlex
name: Compilação, Publicação e Lançamento FolderFlex

on:
push:
Expand Down Expand Up @@ -29,9 +29,6 @@ jobs:
- name: Compilando Tudo
run: dotnet build FolderFlex.sln --configuration ${{ matrix.configuration }} --no-restore

- name: Rodando Testes de unidade
run: dotnet test FolderFlexTeste/FolderFlexTeste.csproj --configuration ${{ matrix.configuration }} --no-build --verbosity normal

- name: Publicando FolderFlex
run: dotnet publish FolderFlex/FolderFlex.csproj --configuration ${{ matrix.configuration }} --output ./output/

Expand All @@ -42,8 +39,31 @@ jobs:
run: |
powershell Compress-Archive -Path ./output/* -DestinationPath ./output/FolderFlex.zip
- name: Upload dos Artefatos
uses: actions/upload-artifact@v3
- name: Criando uma tag para a versão
id: tag_version
run: |
# Define a nova versão da tag (pode ser adaptado conforme sua necessidade)
git tag v1.0.${{ github.run_number }}
# Faz o push da nova tag para o repositório remoto
git push origin v1.0.${{ github.run_number }}
- name: Criando a nova release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: 5.0.${{ github.run_number }}
release_name: "FolderFlex v1.0.${{ github.run_number }}"
draft: false
prerelease: false

- name: Anexando o artefato à release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Build Outputs
path: ./output/FolderFlex.zip
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./output/FolderFlex.zip
asset_name: FolderFlex.zip
asset_content_type: application/zip

0 comments on commit 7934ebc

Please sign in to comment.