diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml new file mode 100644 index 0000000..1dc3b05 --- /dev/null +++ b/.github/workflows/create-release.yaml @@ -0,0 +1,30 @@ +name: Create release on tag push + +on: + push: + tags: + - 'release/*' + +jobs: + build: + name: Build bindED + runs-on: windows-latest + permissions: + contents: write + + steps: + - name: Checkout source code + uses: actions/checkout@v2 + + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1.1 + + - name: Build + run: msbuild -t:build -p:configuration=release + + - name: Draft release + uses: ncipollo/release-action@v1 + with: + artifacts: "bindEDplugin.zip" + bodyFile: "CHANGELOG.md" + draft: true diff --git a/bindEDplugin.csproj b/bindEDplugin.csproj index f35fb68..e042a52 100644 --- a/bindEDplugin.csproj +++ b/bindEDplugin.csproj @@ -87,17 +87,11 @@ - - powershell if (Test-Path '$(SolutionDir)bindEDplugin.zip') { Remove-Item -Path '$(SolutionDir)bindEDplugin.zip' } - - - if $(ConfigurationName) == Release (powershell Compress-Archive -Path '$(TargetDir)' -DestinationPath '$(SolutionDir)bindEDplugin.zip' -Force) - + + - - - --> diff --git a/bindEDplugin.sln b/bindEDplugin.sln index b63b575..8bbd5ff 100644 --- a/bindEDplugin.sln +++ b/bindEDplugin.sln @@ -8,6 +8,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FC89314B-E504-4D5D-BB48-F1E3E4980A13}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig + .github\workflows\create-release.yaml = .github\workflows\create-release.yaml Directory.build.props = Directory.build.props GlobalSuppressions.cs = GlobalSuppressions.cs stylecop.json = stylecop.json