Skip to content

Update main.yml

Update main.yml #26

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- master
name: Create Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: setup MS-build
uses: microsoft/setup-msbuild@v1
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: setup MS-build
uses: microsoft/[email protected]
- name: Build
run: msbuild "PlanningCenter to OPS.sln" /t:Restore /p:Configuration=Release /p:Platform="Any CPU"
- name: Run publish
run: dotnet publish -c Release -p:PublishSingleFile=true --self-contained false "PlanningCenter to OPS\\PlanningCenter to OPS.csproj"
- name: release
id: create_release
uses: zendesk/action-create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "PlanningCenter to OPS\\bin\\Release\\net8.0-windows\\win-x64\\publish\\PlanningCenter to OPS.exe"
asset_name: "PlanningCenter to OPS.exe"
asset_content_type: application/exe