Skip to content

Commit

Permalink
chore(): add releases
Browse files Browse the repository at this point in the history
  • Loading branch information
andymccall committed Sep 9, 2024
1 parent 359e390 commit ad87225
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 21 deletions.
51 changes: 46 additions & 5 deletions .github/workflows/makefile-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Main
on:
push:
branches: [ "main" ]

release:
types: [created]

jobs:
build:

Expand All @@ -12,8 +14,47 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Prerequisites
run: sudo apt-get install -y build-essential gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
- name: Install Prerequisites
run: |
sudo apt-get install -y build-essential gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu gcc-arm-linux-gnueabi binutils-arm-linux-gnueabi
wget https://github.com/CE-Programming/toolchain/releases/latest/download/CEdev-Linux.tar.gz
tar zxpvf CEdev-Linux.tar.gz
rm CEdev-Linux.tar.gz
mv CEdev agdev
wget https://github.com/pcawte/AgDev/releases/download/v3.0.0/AgDev_release_v3.0.0_linux.zip
unzip -d agdev -o AgDev_release_v3.0.0_linux.zip
rm AgDev_release_v3.0.0_linux.zip
echo "$(pwd)/agdev/bin" >> $GITHUB_PATH
echo "AGDEV_BASE=$(pwd)/agdev" >> $GITHUB_ENV
- name: Make All
run: make all

- name: Package
run: make package

- name: Upload Release Artifacts
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: release/*

release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Download Release Artifacts
uses: actions/download-artifact@v3
with:
name: release-artifacts
path: release

- name: Make Package
run: make package
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: release/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 0 additions & 16 deletions Makefile-agon

This file was deleted.

0 comments on commit ad87225

Please sign in to comment.