From f5b7d9509a7fba0368dcef9f1e96cc8ac8331ce4 Mon Sep 17 00:00:00 2001 From: Aaron T Date: Tue, 24 Oct 2023 16:28:53 +0100 Subject: [PATCH] Feat: reorder workflow (#40) * rename releases before uploading * temporary removal of .tga's to transition to lfs * fix: added install lfs and lfs pull steps * lfs attributes and .ds_store added to gitignore * further addition to lfs tracking * rcb added to lfs * ignore eol * remove text from attributes * add mod resources * fix: correct folder structure applied, removed superflous publich artefacts steps in release workflow. * fix: removed publish artifact steps. * fix: zip the folder with the correct structure * fix: zip step changes * fix: order of workflow steps --- .github/workflows/release-creation.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-creation.yml b/.github/workflows/release-creation.yml index 68da227..0aaf353 100644 --- a/.github/workflows/release-creation.yml +++ b/.github/workflows/release-creation.yml @@ -43,16 +43,6 @@ jobs: run: | git lfs pull shell: bash - - - name: Create Zip Archive - if: ${{ steps.release.outputs.release_created }} - run: | - cd ${{github.workspace}}/mod_files - ls -a - zip -r mod_files.zip Mods - cd ../ - mv ./mod_files/mod_files.zip ./publish/mod_files.zip - shell: bash - name: Publish Windows Build if: ${{ steps.release.outputs.release_created }} @@ -72,6 +62,16 @@ jobs: dotnet publish ${{github.workspace}}/RTWLib_CLI/RTWLib_CLI.csproj -c Release -r linux-x64 --self-contained true -o ./publish/linux-x64 mv ./publish/linux-x64/RTW-CLI-Randomiser ./publish/linux-x64/RTW-CLI-Randomiser-linux + - name: Create Zip Archive + if: ${{ steps.release.outputs.release_created }} + run: | + cd ${{github.workspace}}/mod_files + ls -a + zip -r mod_files.zip Mods + cd ../ + mv ./mod_files/mod_files.zip ./publish/mod_files.zip + shell: bash + - name: Upload Release Artifact if: ${{ steps.release.outputs.release_created }} env: @@ -81,4 +81,3 @@ jobs: gh release upload ${{ steps.release.outputs.tag_name }} ${{github.workspace}}/publish/osx-x64/* --clobber gh release upload ${{ steps.release.outputs.tag_name }} ${{github.workspace}}/publish/linux-x64/* --clobber gh release upload ${{ steps.release.outputs.tag_name }} ${{github.workspace}}/publish/mod_files.zip --clobber -