Skip to content

Commit

Permalink
Add an action to build a Windows ZIP (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlastBrothers authored Feb 19, 2024
1 parent 20fd3c8 commit 2be775d
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,40 @@ jobs:
rm CEdev-Linux.tar.gz
cp -r . /usr/share/CEdev/
- name: Zip
- name: Zip (Linux)
run: |
cd /usr/share
zip -r AgDev_release_${{ github.ref_name }}.zip CEdev -x '*.git*' -x '*.github*'
zip -r AgDev_release_${{ github.ref_name }}_linux.zip CEdev -x '*.git*' -x '*.github*'
- name: Upload to GitHub Release
- name: Upload Linux ZIP to GitHub Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: /usr/share/AgDev_release_${{ github.ref_name }}.zip
tags: true
file: /usr/share/AgDev_release_${{ github.ref_name }}_linux.zip
tags: true

release_windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Add CEdev-Windows
run: |
wget https://github.com/CE-Programming/toolchain/releases/download/v11.2/CEdev-Windows.zip
mkdir /usr/share/CEdev
unzip CEdev-Windows.zip -d /usr/share/
rm CEdev-Windows.zip
cp -r . /usr/share/CEdev/
- name: Zip (Windows)
run: |
cd /usr/share
zip -r AgDev_release_${{ github.ref_name }}_windows.zip CEdev -x '*.git*' -x '*.github*'
- name: Upload Windows ZIP to GitHub Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: /usr/share/AgDev_release_${{ github.ref_name }}_windows.zip
tags: true

0 comments on commit 2be775d

Please sign in to comment.