forked from guysoft/CustomPiOS
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.7 KB
/
ReleaseRaspiOS.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build and Release pistompOS
on:
release:
types: [ published ]
jobs:
raspiosbuild:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: sudo apt install coreutils p7zip-full qemu-user-static zip
- name: Checkout CustomPiOS
uses: actions/checkout@v2
with:
repository: 'guysoft/CustomPiOS'
path: CustomPiOS
- name: Checkout pistompOS
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
path: repository
submodules: true
- name: Download Raspberry Pi OS Source Image
run: aria2c -d repository/src/image/ --seed-time=0 https://downloads.raspberrypi.org/raspios_oldstable_lite_arm64_latest.torrent
- name: Update CustomPiOS Paths
run: cd repository/src && ../../CustomPiOS/src/update-custompios-paths
- name: Build Image
run: sudo modprobe loop && cd repository/src && sudo bash -x ./build_dist
- name: Copy output image
run: cp ${{ github.workspace }}/repository/src/workspace/*-raspios-*-lite.img pistompOS-latest.img
- name: Compress the image
run: zip pistompOS-latest.zip pistompOS-latest.img
- uses: actions/upload-artifact@v1
with:
name: pistompOS-latest.zip
path: pistompOS-latest.zip
- name: Upload RaspiOS Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: pistompOS-latest.zip
asset_name: pistompOS-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip