v1.3.0 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 (Linux) | |
run: | | |
cd /usr/share | |
zip -r AgDev_release_${{ github.ref_name }}_linux.zip CEdev -x '*.git*' -x '*.github*' | |
- 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 }}_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 |