1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

Merge pull request from A-UNDERSCORE-D/actions/auto-release

Automatically create releases with github actions
This commit is contained in:
Athanasius 2021-08-03 15:59:11 +01:00 committed by GitHub
commit ad08d8f6f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

@ -42,3 +42,28 @@ jobs:
with:
name: Built files
path: EDMarketConnector_win*.msi
release:
name: Release new version
runs-on: ubuntu-latest
needs: test
if: "${{ github.event_name != 'workflow_dispatch' }}"
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

@ -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**