From 2be775d0eeddd84fc7095021d63b8ee9b678ac65 Mon Sep 17 00:00:00 2001 From: BlastBrothers <83738994+BlastBrothers@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:05:57 -0500 Subject: [PATCH] Add an action to build a Windows ZIP (#9) --- .github/workflows/release.yml | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6248a0e..80d2a58 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file + 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