-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (51 loc) · 1.54 KB
/
test_and_make_release.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
52
53
54
name: Test and make release
on:
push:
branches:
- master
pull_request:
jobs:
pre_merge_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Complete CI/CD setup
run: make setup-cicd-check-stage
- name: Pre-merge checks
run: make pre-merge-checks
semantic_release:
needs:
- pre_merge_checks
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Complete CI/CD setup
run: make setup-cicd-release-stage
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 17.0.4
extra_plugins: |
@semantic-release/changelog@"^5.0.1"
@semantic-release/exec@"^5.0.0"
@semantic-release/git@"^9.0.0"
@semantic-release/github@"^7.0.5"
env:
GITHUB_TOKEN: ${{ secrets.SELF_SET_GITHUB_TOKEN }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_EMAIL }}