Skip to content

Commit

Permalink
better yaw default, delete tweaks too
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed May 12, 2023
1 parent 4fe3e7e commit 99898ef
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 25 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,20 @@ jobs:
name: ${{ env.MOD_ZIP_FILENAME }}_${{ env.PRETTY_CONFIG }}_${{ env.SHORT_SHA }}
path: ${{ github.workspace }}/game_dir/**

- name: Upload game_dir_prereqs with zip file name
- name: Upload game_dir_debug with zip file name
uses: actions/upload-artifact@v3
with:
name: ${{ env.MOD_ZIP_FILENAME }}_${{ env.PRETTY_CONFIG }}_${{ env.SHORT_SHA }}_prereqs
path: ${{ github.workspace }}/game_dir_prereqs/**
name: ${{ env.MOD_ZIP_FILENAME }}_${{ env.PRETTY_CONFIG }}_${{ env.SHORT_SHA }}_pdb
path: ${{ github.workspace }}/game_dir_debug/**

- name: Upload game_dir_requirements with zip file name
uses: actions/upload-artifact@v3
with:
name: ${{ env.MOD_ZIP_FILENAME }}_${{ env.PRETTY_CONFIG }}_${{ env.SHORT_SHA }}_requirements
path: ${{ github.workspace }}/game_dir_requirements/**

- name: Upload game_dir_requirements_debug with zip file name
uses: actions/upload-artifact@v3
with:
name: ${{ env.MOD_ZIP_FILENAME }}_${{ env.PRETTY_CONFIG }}_${{ env.SHORT_SHA }}_requirements_pdb
path: ${{ github.workspace }}/game_dir_requirements_debug/**
34 changes: 30 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,48 @@ jobs:
run: |
git-cliff --current --strip header
git-cliff --current --strip header -o ${{ env.CHANGELOG_FILE }}
cat requirements.md >> ${{ env.CHANGELOG_FILE }}
- name: Zipping game_dir
run: tar -cvf "${{ github.workspace }}/${{ env.MOD_SLUG }}_${{ github.ref_name }}.zip" --format=zip *
working-directory: game_dir

- name: Zipping game_dir_prereqs
run: tar -cvf "${{ github.workspace }}/${{ env.MOD_SLUG }}_${{ github.ref_name }}_prereqs.zip" --format=zip *
working-directory: game_dir_prereqs
- name: Zipping game_dir_debug
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

- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: ${{ env.CHANGELOG_FILE }}
append_body: true
files: |
${{ env.MOD_SLUG }}_${{ github.ref_name }}.zip
${{ env.MOD_SLUG }}_${{ github.ref_name }}_prereqs.zip
${{ env.MOD_SLUG }}_${{ github.ref_name }}_requirements.zip
${{ env.MOD_SLUG }}_${{ github.ref_name }}_pdb.zip
${{ env.MOD_SLUG }}_${{ github.ref_name }}_requirements_pdb.zip
prerelease: ${{ contains(github.ref_name, '-') || contains(github.ref_name, '_') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ wolvenkit/let_there_be_flight.zip
wolvenkit/install_log.xml
src/wolvenkit/source/
game_dir/
game_dir_prereqs/
game_dir_requirements/
game_dir_debug/
game_dir_requirements_debug/

tools/builder/x64/*
cmake-*/
Expand Down
Loading

0 comments on commit 99898ef

Please sign in to comment.