Skip to content

Commit a67fc0a

Browse files
committed
Create github action
Signed-off-by: Andy Doan <andy@foundries.io>
1 parent 75d1ff6 commit a67fc0a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

action.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Upload Private Artifacts"
2+
description: "Uploads build artifacts that should not be available for public consumption."
3+
inputs:
4+
path:
5+
description: "Directory containing the files to upload"
6+
required: true
7+
build_id:
8+
description: "Path on fileserver to put artifacts under: ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}"
9+
required: true
10+
fileserver_url:
11+
description: "Server to use for upload"
12+
required: true
13+
default: "https://quic-yocto-fileserver-1029608027416.us-central1.run.app'"
14+
upload_threads:
15+
description: "Number of concurrent upload threads to use"
16+
required: true
17+
default: "5"
18+
outputs:
19+
url:
20+
description: "URL where objects are availble at"
21+
value: ${{ steps.upload.outputs.url }}
22+
runs:
23+
using: "composite"
24+
steps:
25+
- name: Upload Artifacts
26+
id: upload
27+
env:
28+
BUILD_DIR: ${{ inputs.path }}
29+
BUILD_ID: ${{ inputs.build_id}}
30+
FILE_SERVER: ${{ inputs.fileserver_url }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
UPLOAD_THREADS: ${{ inputs.upload_threads }}
33+
shell: bash
34+
run: ./publish_artifacts.py

0 commit comments

Comments
 (0)