From 2030fd5fc6471f081fdb238a8cd58bdcf508d4f7 Mon Sep 17 00:00:00 2001 From: A_D Date: Tue, 3 Aug 2021 14:47:49 +0200 Subject: [PATCH 1/3] added auto-release job --- .github/workflows/windows-build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index e230d6dd..83339013 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -42,3 +42,27 @@ jobs: with: name: Built files path: EDMarketConnector_win*.msi + + release: + name: Release new version + runs-on: ubuntu-latest + needs: test + + steps: + - name: Download binary + uses: actions/download-artifact@v2 + with: + name: Built files + path: ./ + + - name: Hash files + run: sha256sum EDMarketConnector_win*.msi > ./hashes.sum + + - name: Create Draft Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{secrets.GITHUB_TOKEN}}" + draft: true + files: | + ./EDMarketConnector_win*.msi + ./hashes.sum From 9365d4e77480cd6e33f890278edfd0e5270cd6be Mon Sep 17 00:00:00 2001 From: A_D Date: Tue, 3 Aug 2021 15:54:02 +0200 Subject: [PATCH 2/3] dont create releases on manual builds --- .github/workflows/windows-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 83339013..1b6fd0f0 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -47,6 +47,7 @@ jobs: name: Release new version runs-on: ubuntu-latest needs: test + if: "${{ github.event_name != 'workflow_dispatch' }}" steps: - name: Download binary From 0bc8ff9a0b945114a013d315b676f8e98515de86 Mon Sep 17 00:00:00 2001 From: A_D Date: Tue, 3 Aug 2021 15:57:35 +0200 Subject: [PATCH 3/3] update automatic builds docs --- docs/Automatic Builds.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/Automatic Builds.md b/docs/Automatic Builds.md index 014ecc3c..11932c50 100644 --- a/docs/Automatic Builds.md +++ b/docs/Automatic Builds.md @@ -26,3 +26,12 @@ When the workflow is (successfully) completed, it will upload the msi file it bu Within the `Built Files` zip file is the installer msi **Please ensure you test the built msi before creating a release.** + +## Automatic release creation + +Github Actions can automatically create a release after finishing a build (as mentioned above). To make this happen, +simply push a tag to the repo with the format `v1.2.3` where 1.2.3 is the semver for the version (Note that this is +**DISTINCT** from the normal `Release/1.2.3` format for release tags). + +Once the push is completed, a build will start, and once that is complete, a draft release will be created. Edit the +release as needed and publish it. **Note that you should still test the built msi before publishing the release**