Update build_mod.yml
This commit is contained in:
12
.github/workflows/build_mod.yml
vendored
12
.github/workflows/build_mod.yml
vendored
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user