-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PowerPointToOSC package is now created automatically with GitHub Actions
- Loading branch information
Showing
4 changed files
with
58 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Build and Package | ||
|
||
on: [push, workflow_dispatch] | ||
on: [push] | ||
|
||
jobs: | ||
|
||
|
@@ -12,19 +12,46 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# We need msbuild | ||
# We need msbuild and NuGet | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v1 | ||
|
||
- name: Restore NuGet Packages | ||
run: nuget restore PowerPointToOSC.sln | ||
|
||
# Build artifacts | ||
- name: Build | ||
run: msbuild.exe PowerPointToOSC.sln /t:restore;rebuild;publish /p:PublishSingleFile=True /p:SelfContained=True /p:RuntimeIdentifier=win10-x64 /p:Configuration=Release | ||
run: msbuild PowerPointToOSC.sln /p:RuntimeIdentifier=win-x64 /p:Configuration=Release | ||
|
||
# Upload artifacts | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Dist | ||
path: | | ||
./dist/* | ||
!./dist/.keep | ||
name: PowerPointToOSC | ||
path: bin\Release\net48\win-x64 | ||
retention-days: 7 | ||
|
||
- name: Generate zip bundle | ||
run: 7z a -tzip PowerPointToOSC.zip .\bin\Release\net48\win-x64\* | ||
|
||
- if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
name: Publish latest pre-release | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "latest" | ||
prerelease: true | ||
files: | | ||
PowerPointToOSC.zip | ||
- if: startsWith(github.ref, 'refs/tags/v') | ||
name: Publish tagged release | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: | | ||
PowerPointToOSC.zip |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
https://go.microsoft.com/fwlink/?LinkID=208121. | ||
--> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration>Release</Configuration> | ||
<Platform>Any CPU</Platform> | ||
<PublishDir>bin\Release\Publish</PublishDir> | ||
<PublishProtocol>FileSystem</PublishProtocol> | ||
<TargetFramework>net48</TargetFramework> | ||
<RuntimeIdentifier>win-x64</RuntimeIdentifier> | ||
<SelfContained>true</SelfContained> | ||
<PublishSingleFile>False</PublishSingleFile> | ||
<PublishReadyToRun>False</PublishReadyToRun> | ||
<PublishTrimmed>False</PublishTrimmed> | ||
</PropertyGroup> | ||
</Project> |