Skip to content

Commit 355d420

Browse files
committed
Create payload.yml
1 parent 8b198fe commit 355d420

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/payload.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# .github/workflows/payload-package.yml
2+
name: Generate Payload Library Artifact
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-and-package:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Clone OTA payload repo from Google
18+
run: |
19+
git clone --recursive https://android.googlesource.com/platform/tools/ota_payload \
20+
google-payload
21+
22+
- name: Compress payload files
23+
run: |
24+
cd payload-output
25+
zip -r ../payload-files.zip .
26+
27+
- name: Upload artifact
28+
uses: actions/upload-artifact@v3
29+
with:
30+
name: payload-files
31+
path: payload-files.zip

0 commit comments

Comments
 (0)