-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 986 Bytes
/
demo.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
name: Django # workflow name
on:
push:
branches: # similar to "only" in GitLab
- main
jobs:
build:
runs-on: ubuntu-20.04 # similar to "image" in GitLab
steps:
- run: echo "This is a build step" # similar to "script" in GitLab
test:
runs-on: ubuntu-20.04
needs: build
steps:
- run: echo "This is a test step"
integration:
runs-on: ubuntu-20.04
needs: test
steps:
- run: echo "This is an integration step"
- run: exit 1
continue-on-error: true
prod:
runs-on: ubuntu-20.04
needs: integration
steps:
- run: echo "This is a deploy step"
artifact:
needs: prod
runs-on: ubuntu-20.04
steps:
- run: echo "hello" > hello.txt
- uses: actions/upload-artifact@v4
with:
name: hello-artifact
path: /hello.txt