mirror of
https://github.com/Xevion/RimWorld-Hydroponics-Expanded.git
synced 2025-12-16 02:12:53 -06:00
Get version before moving files
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -28,17 +28,17 @@ jobs:
|
|||||||
- name: Build Mod
|
- name: Build Mod
|
||||||
run: dotnet build ${{ env.SLN_PATH }} --configuration Release --no-restore
|
run: dotnet build ${{ env.SLN_PATH }} --configuration Release --no-restore
|
||||||
|
|
||||||
- name: Move files
|
|
||||||
run: |
|
|
||||||
mkdir -p output/HydroponicsExpanded
|
|
||||||
mv About/About.xml About/Preview.png About/PublishedFileId.txt Assemblies/ Defs/ Languages/ Textures/ output/HydroponicsExpanded
|
|
||||||
|
|
||||||
- name: Get Version
|
- name: Get Version
|
||||||
id: get_version
|
id: get_version
|
||||||
uses: mikefarah/yq@master
|
uses: mikefarah/yq@master
|
||||||
with:
|
with:
|
||||||
cmd: cat ./About/About.xml | xq '.ModMetaData.modVersion'
|
cmd: cat ./About/About.xml | xq '.ModMetaData.modVersion'
|
||||||
|
|
||||||
|
- name: Move files
|
||||||
|
run: |
|
||||||
|
mkdir -p output/HydroponicsExpanded
|
||||||
|
mv About/About.xml About/Preview.png About/PublishedFileId.txt Assemblies/ Defs/ Languages/ Textures/ output/HydroponicsExpanded
|
||||||
|
|
||||||
- name: Upload Mod Artifacts
|
- name: Upload Mod Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user