Skip to content

Commit

Permalink
Create dotnet-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
micah686 authored Jun 29, 2024
1 parent 9471a5d commit 8327514
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/dotnet-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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

on:
push:
branches: '**'
tags: '*'
pull_request:
branches: '**'

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore

- name: Create Output Directories
run: |
mkdir ${{ github.workspace }}\output\setup
mkdir ${{ github.workspace }}\output\build
xcopy /E /I ${{ github.workspace }}\setup ${{ github.workspace }}\output\setup
- name: Build with PS
shell: powershell
run: |
mkdir ${{ github.workspace }}/build
dir ${{ github.workspace }}
dotnet build InfoPanel\InfoPanel.csproj -c Release --output "${{ github.workspace }}\output\build"
- name: Install and Compile Inno Setup Installer
shell: powershell
run: |
cd ${{ github.workspace }}\InnoSetup
iscc "setup.iss"
- name: Upload Artifact Setup
uses: actions/upload-artifact@v1
with:
name: InfoPanel-Setup
path: "${{ github.workspace }}/InnoSetup/Output/InfoPanelSetup.exe"


0 comments on commit 8327514

Please sign in to comment.