Skip to content

Commit

Permalink
added release packets
Browse files Browse the repository at this point in the history
Signed-off-by: John Sanpe <[email protected]>
  • Loading branch information
sanpeqf committed Oct 9, 2023
1 parent 5f84b10 commit 44f4d69
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,46 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup variables
run: |
echo RELEASE=$(date +%Y\/%m\/%d) >> $GITHUB_ENV
- name: Install dependencies
run: |
sudo apt update
sudo apt install make mkbootimg build-essential \
libncurses5-dev bison flex libssl-dev device-tree-compiler \
gcc-arm-none-eabi gcc-aarch64-linux-gnu bc libfdt-dev \
libarchive-tools arch-install-scripts qemu-user-static
- name: Initialization submodule
run: git submodule update --init

- name: Build packets
run: sudo bash build.sh
run: sudo bash ${{github.workspace}}/build.sh

- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
body: ${{env.RELEASE}}
tag_name: ${{env.RELEASE}}
draft: false
prerelease: false
files: |
${{github.workspace}}/aboot.img
${{github.workspace}}/boot.img
${{github.workspace}}/rootfs.img.zst
${{github.workspace}}/aboot.img.sha256sum
${{github.workspace}}/boot.img.sha256sum
${{github.workspace}}/rootfs.img.zst.sha256sum
- name: Delete old releases
uses: dev-drprasad/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
keep_latest: 1
delete_tags: true

0 comments on commit 44f4d69

Please sign in to comment.