Skip to content

Commit

Permalink
Create push.yml [ci build]
Browse files Browse the repository at this point in the history
  • Loading branch information
xrSimpodin committed Jul 2, 2024
1 parent dc40fbc commit 2060aaa
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Main Workflow

on:
push:
pull_request:
release:
types:
- created

jobs:
build:
if: "contains(github.event.head_commit.message, '[ci build]') || github.event_name == 'release'"
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
Configuration: [Release]
Platform: [x64]
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0

- name: Add nuget to PATH
uses: nuget/setup-nuget@v2

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Nuget Restore
run: nuget restore

- name: MSBuild
shell: cmd
run: |
msbuild LuaDkmDebugger17.sln /t:Rebuild /p:Configuration=${{ matrix.Configuration }} /p:Platform=${{ matrix.Platform }} /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal
- name: Upload OGSR artifact
uses: actions/[email protected]
with:
name: LuaDkmDebugger17.vsix
path: .\LuaDkmDebugger17\bin\${{ matrix.Configuration }}\LuaDkmDebugger17.vsix

- name: Upload release asset
if: github.event_name == 'release'
uses: Czuz/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: .\LuaDkmDebugger17\bin\${{ matrix.Configuration }}\LuaDkmDebugger17.vsix
asset_name: LuaDkmDebugger17.vsix
asset_content_type: application/zip

0 comments on commit 2060aaa

Please sign in to comment.