From e845a32cd8da00bd6cc401231cd0671411fa04bd Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Mon, 30 May 2022 20:26:05 +0200 Subject: [PATCH] =?UTF-8?q?first=20na=C3=AFve=20version=20of=20github=20ac?= =?UTF-8?q?tions=20for=20automated=20releases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create-release.yaml | 30 +++++++++++++++++++++++++++ bindEDplugin.csproj | 12 +++-------- bindEDplugin.sln | 1 + 3 files changed, 34 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/create-release.yaml 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