-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 877 Bytes
/
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
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 "hello world" > hello.txt
- name: Create artifact
run: echo "goodbye world" > goodbye.txt
- name: Upload actifact
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: Hello
path: |
hello.txt
goodbye.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: |
**