-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (51 loc) · 1.36 KB
/
build_app_runner.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
name: Build App Runner
on:
workflow_dispatch:
release:
types: [published]
tags:
- "app-runner/*"
jobs:
build_app_runner:
name: Build App Runner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
bash app_runner/deploy/build.sh build-output app_runner
ls -l build-output
- name: Verify
run: |
build-output/app_runner/app_runner --help
- name: Upload
uses: actions/upload-artifact@v4
with:
name: app_runner_linux_x86_64
path: build-output
publish_release_artifact:
name: Publish Release Artifact
runs-on: ubuntu-latest
needs: build_app_runner
if: github.event_name == 'release'
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: app_runner_linux_x86_64
path: app_runner_linux_x86_64
- name: Zip for release
run: |
cd app_runner_linux_x86_64
zip -r app_runner_linux_x86_64.zip *
ls -l
- name: Print folder structure
run: |
tree
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
files: |
app_runner_linux_x86_64/app_runner_linux_x86_64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}