Skip to content

Commit

Permalink
Update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
keton committed Mar 1, 2024
1 parent 4d1692e commit 0890db6
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET
name: Dotnet build

on: [push]
on:
workflow_dispatch:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write
Expand All @@ -13,24 +17,24 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet publish -r win-x64 --sc
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: chihuahua
path: ${{github.workspace}}/bin/Release/net8.0/win-x64/publish/*.*
if-no-files-found: error
- name: Compress artifacts
if: startsWith(github.ref, 'refs/tags/')
run: 7z a ${{github.workspace}}/chihuahua.zip ${{github.workspace}}/bin/Release/net8.0/win-x64/publish/*.*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: chihuahua.zip
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet publish -r win-x64 --sc
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: chihuahua
path: ${{github.workspace}}/bin/Release/net8.0/win-x64/publish/*.*
if-no-files-found: error
- name: Compress artifacts
if: startsWith(github.ref, 'refs/tags/')
run: 7z a ${{github.workspace}}/chihuahua.zip ${{github.workspace}}/bin/Release/net8.0/win-x64/publish/*.*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: chihuahua.zip

0 comments on commit 0890db6

Please sign in to comment.