From 9814abc26d2429ad7b0b04eb35c23b7aa660018a Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Tue, 18 Aug 2020 18:19:46 -0500 Subject: [PATCH] Added release drafter to actions --- .github/release_draft.yml | 19 +++++++++++++++++++ .github/workflows/build.yml | 13 +++++++++---- BSIPA.sln | 1 + 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .github/release_draft.yml diff --git a/.github/release_draft.yml b/.github/release_draft.yml new file mode 100644 index 00000000..065b41c8 --- /dev/null +++ b/.github/release_draft.yml @@ -0,0 +1,19 @@ +name-template: 'BSIPA $RESOLVED_VERSION' +tag-template: '$RESOLVED_VERSION' +categories: + +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch +template: | + [*All Changes*](https://github.com/bsmg/BeatSaber-IPA-Reloaded/compare/$PREVIOUS_TAG...$RESOLVED_VERSION) + [*Documentation Permalink*](https://bsmg.github.io/BeatSaber-IPA-Reloaded/tags/$RESOLVED_VERSION/index.html) \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ae3e199..c6f76df4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,9 +7,6 @@ on: pull_request: branches: - master - release: - types: - - created defaults: run: @@ -44,4 +41,12 @@ jobs: uses: actions/upload-artifact@v2 with: name: BSIPA-net35-${{ env.Platform }} - path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net35/ \ No newline at end of file + path: BSIPA-Meta/bin/${{ env.Platform }}/${{ env.Configuration }}/net35/ + - name: Create Release Draft + id: create_release + uses: release-drafter/release-drafter@v5 + with: + config-name: release_draft.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # TODO: make it auto-upload assets \ No newline at end of file diff --git a/BSIPA.sln b/BSIPA.sln index da84d302..bda99539 100644 --- a/BSIPA.sln +++ b/BSIPA.sln @@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{C79C2C3A EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4D6639A2-BD39-4F9B-AF7F-8E5F3B88243D}" ProjectSection(SolutionItems) = preProject + .github\release_draft.yml = .github\release_draft.yml .github\workflows\build.yml = .github\workflows\build.yml .github\workflows\docs.yml = .github\workflows\docs.yml README.md = README.md