Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Laeng authored Mar 3, 2021
1 parent 9b7f2e5 commit b09859e
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

workflow_dispatch:

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup msbuild
uses: microsoft/[email protected]

- name: Setup nuget
uses: nuget/setup-nuget@v1

- name: Build app
run: msbuild SCTools\SCTools.sln /t:restore /t:SCTool_Redesigned /p:Configuration=Release /p:Platform="Any CPU" /p:RestorePackagesConfig=true

- name: Compress component
uses: papeloto/action-zip@v1
with:
files: SCTools\SCTool_Redesigned\bin\Release
dest: Release.zip

- name: Delete tag and release
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Release.zip
asset_name: Release.zip
tag: dev
prerelease: true
overwrite: true
body: "Warning: This is the development version. You may encounter 30K errors!"

0 comments on commit b09859e

Please sign in to comment.