From 7ca1130b18b4e699a744345d2fff3ce124756cf7 Mon Sep 17 00:00:00 2001 From: "Jack Gabriel C. Acodili" <112671361+acodili-jg@users.noreply.github.com> Date: Thu, 27 Jul 2023 21:08:43 +0800 Subject: [PATCH] Create action.yml --- .github/actions/publish/action.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/actions/publish/action.yml diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml new file mode 100644 index 0000000..75b6e1e --- /dev/null +++ b/.github/actions/publish/action.yml @@ -0,0 +1,28 @@ +name: Publish +description: Builds, captures, and publishes the compiled jar + +inputs: + version_modifier: + description: Version Suffix + required: false + default: '' + version_type: + description: Version type + required: false + default: release + changelog: + description: Changelog + required: false + +runs: + using: composite + steps: + - name: Build + uses: ./.github/actions/build + - name: Upload to Modrinth + run: ./gradlew modrinth + env: + MODRINTH_CHANGELOG: ${{ inputs.changelog }} + MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + MODRINTH_VERSION_MODIFIER: ${{ inputs.version_modifier }} + MODRINTH_VERSION_TYPE: ${{ inputs.version_type }}