-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (55 loc) · 1.29 KB
/
build.yaml
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
on:
push:
workflow_dispatch:
jobs:
Linux:
runs-on: ubuntu-20.04
steps:
- name: Hello
run: echo hello world
- name: Create artifact
run: echo "linux-1" > linux-1.txt
- name: Create artifact
run: echo "linux-2" > linux-2.txt
- name: Upload actifact
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: Linux
path: |
linux-1.txt
linux-2.txt
Android:
runs-on: ubuntu-20.04
steps:
- name: Hello
run: echo hello world
- name: Create artifact
run: echo "android-1" > android-1.txt
- name: Create artifact
run: echo "android-2" > android-2.txt
- name: Upload actifact
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: Android
path: |
android-1.txt
android-2.txt
Release:
if: startsWith(github.ref, 'refs/tags/')
needs: [Linux]
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: Get all build artifacts
uses: actions/download-artifact@v4
with:
path: .
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: |
**