Skip to content

Commit

Permalink
workflow; update release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
koolkdev committed Jan 10, 2022
1 parent ea8cc49 commit 484111c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,22 @@ jobs:
with:
name: wfs-extract-${{matrix.release_name}}
path: build/${{matrix.configure_preset}}/wfs-extract/Release

- name: Upload wfs-file-injector
uses: actions/upload-artifact@v2
with:
name: wfs-file-injector-${{matrix.release_name}}
path: build/${{matrix.configure_preset}}/wfs-file-injector/Release

- name: Prepare Release Windows
run: powershell Compress-Archive -Path build\${{matrix.configure_preset}}\wfs-file-injector\Release\wfs-file-injector.exe, build\${{matrix.configure_preset}}\wfs-extract\Release\wfs-extract.exe -DestinationPath wfs-tools-${{github.ref_name}}-${{matrix.release_name}}.zip
if: matrix.platform == 'windows-latest'
- name: Prepare Release Linux
run: zip -r -j wfs-tools-${{github.ref_name}}-${{matrix.release_name}}.zip build/${{matrix.configure_preset}}/wfs-file-injector/Release/wfs-file-injector build/${{matrix.configure_preset}}/wfs-extract/Release/wfs-extract
if: startsWith(github.ref, 'refs/tags/') && matrix.platform != 'windows-latest'

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: wfs-tools-${{github.ref_name}}-${{matrix.release_name}}.zip

0 comments on commit 484111c

Please sign in to comment.