From 47538976ea8553096c6c346f7ebd51197b7663e3 Mon Sep 17 00:00:00 2001 From: Pao Date: Fri, 10 Mar 2023 01:47:41 +0100 Subject: [PATCH] Update manual.yml --- .github/workflows/manual.yml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index fd05b0c..9014fb9 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -1,27 +1,22 @@ -# This is a basic workflow that is manually triggered - -name: Manual workflow -# Controls when the action will run. Workflow runs when manually triggered using the UI -# or API. +name: Build Mod on: workflow_dispatch: - # Inputs the workflow accepts. inputs: - name: + mod_name: # Friendly description to be shown in the UI instead of 'name' - description: 'Person to greet' + description: 'Mod name' # Default value if no value is explicitly provided - default: 'World' + default: 'TheOnlyCure' # Input has to be provided for the workflow to run required: true - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - assemble_package: + my_first_job: runs-on: ubuntu-latest steps: - - name: Run audit - id: audit - run: | - echo "Test1" - echo "Test2" + - 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