Skip to content

Commit

Permalink
add check for requirements folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed May 12, 2023
1 parent ce8afc8 commit 07ec57c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,25 @@ jobs:
run: tar -cvf "${{ github.workspace }}/${{ env.MOD_SLUG }}_${{ github.ref_name }}_pdb.zip" --format=zip *
working-directory: game_dir_debug

- name: Check file existence
id: requirements_folder_exists
uses: andstor/file-existence-action@v1
with:
files: "game_dir_requirements"

- name: Check file existence
id: requirements_debug_folder_exists
uses: andstor/file-existence-action@v1
with:
files: "game_dir_requirements_debug"

- name: Zipping game_dir_requirements
if: steps.requirements_folder_exists.outputs.files_exists == 'true'
run: tar -cvf "${{ github.workspace }}/${{ env.MOD_SLUG }}_${{ github.ref_name }}_requirements.zip" --format=zip *
working-directory: game_dir_requirements

- name: Zipping game_dir_requirements_debug
if: steps.requirements_debug_folder_exists.outputs.files_exists == 'true'
run: tar -cvf "${{ github.workspace }}/${{ env.MOD_SLUG }}_${{ github.ref_name }}_requirements_pdb.zip" --format=zip *
working-directory: game_dir_requirements_debug

Expand Down
2 changes: 1 addition & 1 deletion deps/cpcmake

0 comments on commit 07ec57c

Please sign in to comment.