-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: John Sanpe <[email protected]>
- Loading branch information
Showing
1 changed file
with
33 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |