fix built time #21
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: HoneyPi CI release | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
rpi-image: | |
name: "Build image" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# install dependencies | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y coreutils quilt parted qemu-utils qemu-user-static debootstrap zerofree zip dosfstools libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc | |
# build image | |
- name: Build | |
run: | | |
git clone https://github.com/RPi-Distro/pi-gen pi-gen | |
cd pi-gen && git fetch && git fetch --tags | |
git checkout 2023-02-21-raspios-bullseye | |
cp ./../config ./config | |
cp -R ./../stage-honeypi ./stage-honeypi | |
sudo ./build.sh | |
sudo mv ./deploy/*.zip ./deploy/HoneyPi.zip | |
sudo chown -fR $(stat -c "%U:%G" .) ./deploy | |
# delete previous releases | |
- name: Delete previous releases | |
uses: dev-drprasad/[email protected] | |
with: | |
keep_latest: 0 | |
delete_tags: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# create release and upload image | |
- name: Create release and upload image | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: pi-gen/deploy/HoneyPi.zip | |
asset_name: HoneyPi.zip | |
tag: HoneyPi | |
release_name: HoneyPi | |
body: "Raspberry Pi OS Lite image with HoneyPi pre installed. Release created by GitHub action." | |
overwrite: true |