Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 authored Mar 18, 2024
1 parent 7d1a46a commit eae4055
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,38 @@ jobs:
docker exec alpine shards install --without-development --release --static
docker exec alpine shards build --release --static
docker exec alpine chmod +x bin/deepl
zip -j bin/deepl-linux.zip bin/deepl
zip -j bin/deepl-free-linux.zip bin/deepl
docker exec -e DEEPL_API_PRO=1 alpine shards build --release --static
zip -j bin/deepl-pro-linux.zip bin/deepl
- name: Run Mac Build x64
if: matrix.os == 'macos'
run: |
shards install --without-development --release
shards build --release
chmod +x bin/deepl
zip -j bin/deepl-macos.zip bin/deepl
zip -j bin/deepl-free-macos.zip bin/deepl
DEEPL_API_PRO=1 shards build --release
zip -j bin/deepl-pro-macos.zip bin/deepl
- name: Run Windows Build x64
if: matrix.os == 'windows'
run: |
shards install --without-development --release
shards build --release
Set-ExecutionPolicy RemoteSigned -Scope Process
Compress-Archive -Path bin/deepl.exe -DestinationPath bin/deepl-windows.zip
Compress-Archive -Path bin/deepl.exe -DestinationPath bin/deepl-free-windows.zip
(set DEEPL_API_PRO=1) && shards build --release
Compress-Archive -Path bin/deepl.exe -DestinationPath bin/deepl-pro-windows.zip
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
with:
files: |
bin/deepl-linux.zip
bin/deepl-macos.zip
bin/deepl-windows.zip
bin/deepl-free-linux.zip
bin/deepl-pro-linux.zip
bin/deepl-free-macos.zip
bin/deepl-pro-macos.zip
bin/deepl-free-windows.zip
bin/deepl-pro-windows.zip
LICENSE.txt

0 comments on commit eae4055

Please sign in to comment.