Skip to content

Commit

Permalink
Feat: reorder workflow (#40)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sargeantPig authored Oct 24, 2023
1 parent 6e95e30 commit f5b7d95
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/release-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand All @@ -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

0 comments on commit f5b7d95

Please sign in to comment.