From c9729923c1f6d456e0adaa03722761805a433e2d Mon Sep 17 00:00:00 2001 From: Sascha Schneider Date: Fri, 9 Feb 2024 09:08:32 +0100 Subject: [PATCH] Add release workflow to put together CEdev and AgDev as zip. --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6248a0e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: release + +on: + release: + types: [created] + +jobs: + release_linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Add CEdev-Linux + run: | + wget https://github.com/CE-Programming/toolchain/releases/download/v11.2/CEdev-Linux.tar.gz + mkdir /usr/share/CEdev + tar -xvf CEdev-Linux.tar.gz -C /usr/share/ + rm CEdev-Linux.tar.gz + cp -r . /usr/share/CEdev/ + + - name: Zip + run: | + cd /usr/share + zip -r AgDev_release_${{ github.ref_name }}.zip CEdev -x '*.git*' -x '*.github*' + + - name: Upload 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