Create Release #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
workflow_dispatch: | |
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 | |
uses: zendesk/action-create-release@v1 | |
id: create_release | |
with: | |
tag_name: Latest | |
release_name: Latest | |
draft: false | |
prerelease: false | |
body_path: CHANGELOG.md | |
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 |