File tree Expand file tree Collapse file tree 2 files changed +33
-13
lines changed Expand file tree Collapse file tree 2 files changed +33
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on :
4
- pull_request :
5
- push :
6
- branches :
7
- - master
8
- # - staging
9
- # - trying
3
+ on : pull_request
10
4
11
5
jobs :
12
6
test :
7
+ name : Test
8
+
13
9
strategy :
14
10
matrix :
15
11
# macos-latest doesn't have docker-compose, no manifest for windows-latest
16
12
platform : [ubuntu-latest]
13
+
17
14
runs-on : ${{ matrix.platform }}
18
15
19
16
steps :
22
19
- name : Build the stack
23
20
run : docker-compose -f ./tests/db/docker-compose.yml up -d
24
21
25
- # HACK: Maybe find a more reliable way to do this
26
- - name : Sleep for 30 seconds
27
- uses : jakejarvis/wait-action@master
28
- with :
29
- time : " 30s"
30
-
31
22
- name : Set up toolchain
32
23
uses : actions-rs/toolchain@v1
33
24
with :
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ release :
10
+ name : Release
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+
17
+ - uses : actions/setup-node@v1
18
+ with :
19
+ node-version : " 12.x"
20
+
21
+ - name : Release on GitHub
22
+ run : |
23
+ npm i -g semantic-release
24
+ npx semantic-release -p \
25
+ @semantic-release/commit-analyzer \
26
+ @semantic-release/github \
27
+ @semantic-release/release-notes-generator
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments