From 0d04e03dc81d8203d73cc7221a67f8b2534cf21e Mon Sep 17 00:00:00 2001 From: Pao Date: Fri, 10 Mar 2023 02:34:42 +0100 Subject: [PATCH] Update build_mod.yml --- .github/workflows/build_mod.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_mod.yml b/.github/workflows/build_mod.yml index ed9a932..651009e 100644 --- a/.github/workflows/build_mod.yml +++ b/.github/workflows/build_mod.yml @@ -3,11 +3,12 @@ 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 + version: + description: 'Version' + default: '1.0' required: true jobs: main_job: @@ -16,11 +17,14 @@ jobs: - uses: actions/checkout@v3 - run: mkdir -p ${{ inputs.mod_name }}/Contents/mods/${{ inputs.mod_name }} - run: cp workshop.txt ${{ inputs.mod_name }}/workshop.txt + - run: cp preview.png ${{ inputs.mod_name}}/preview.png - run: cp mod.info ${{ inputs.mod_name }}/Contents/mods/${{ inputs.mod_name }}/mod.info + - run: cp icon.png ${{ inputs.mod_name }}/Contents/mods/${{ inputs.mod_name }}/icon.png + - run: cp generic.png ${{ inputs.mod_name }}/Contents/mods/${{ inputs.mod_name }}/generic.png - run: cp -r media ${{ inputs.mod_name }}/Contents/mods/${{ inputs.mod_name }}/media - uses: actions/upload-artifact@v3 with: - name: ${{ inputs.mod_name }} + name: ${{ inputs.mod_name }}-${{ inputs.version }} path: | ${{ inputs.mod_name }} ${{ inputs.mod_name }}/Contents/