Update build_mod.yml

This commit is contained in:
Pao
2023-03-10 02:34:42 +01:00
committed by GitHub
parent 37a33e6904
commit 0d04e03dc8

View File

@@ -3,11 +3,12 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
mod_name: mod_name:
# Friendly description to be shown in the UI instead of 'name'
description: 'Mod name' description: 'Mod name'
# Default value if no value is explicitly provided
default: 'TheOnlyCure' default: 'TheOnlyCure'
# Input has to be provided for the workflow to run required: true
version:
description: 'Version'
default: '1.0'
required: true required: true
jobs: jobs:
main_job: main_job:
@@ -16,11 +17,14 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: mkdir -p ${{ inputs.mod_name }}/Contents/mods/${{ inputs.mod_name }} - run: mkdir -p ${{ inputs.mod_name }}/Contents/mods/${{ inputs.mod_name }}
- run: cp workshop.txt ${{ inputs.mod_name }}/workshop.txt - 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 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 - run: cp -r media ${{ inputs.mod_name }}/Contents/mods/${{ inputs.mod_name }}/media
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: ${{ inputs.mod_name }} name: ${{ inputs.mod_name }}-${{ inputs.version }}
path: | path: |
${{ inputs.mod_name }} ${{ inputs.mod_name }}
${{ inputs.mod_name }}/Contents/ ${{ inputs.mod_name }}/Contents/