From b5c25ba4b74125e456fe28064cb26e17799cc838 Mon Sep 17 00:00:00 2001 From: Pao Date: Fri, 10 Mar 2023 01:51:54 +0100 Subject: [PATCH] Create .github/workflows/manual.yml --- .github/workflows/build_mod.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build_mod.yml diff --git a/.github/workflows/build_mod.yml b/.github/workflows/build_mod.yml new file mode 100644 index 0000000..9014fb9 --- /dev/null +++ b/.github/workflows/build_mod.yml @@ -0,0 +1,22 @@ +name: Build Mod +on: + workflow_dispatch: + inputs: + mod_name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Mod name' + # Default value if no value is explicitly provided + default: 'TheOnlyCure' + # Input has to be provided for the workflow to run + required: true +jobs: + my_first_job: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: mkdir -p ${{ inputs.mod_name}/Contents/mods/${{ inputs.mod_name} + - run: echo hello > ${{ inputs.mod_name}/Contents/mods/${{ inputs.mod_name}/world.txt + - uses: actions/upload-artifact@v3 + with: + name: ${{ inputs.mod_name }} + path: path/to/artifact/world.txt