-
Notifications
You must be signed in to change notification settings - Fork 48
41 lines (37 loc) · 1.06 KB
/
release.yml
File metadata and controls
41 lines (37 loc) · 1.06 KB
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
name: Release
on: [ push, pull_request ]
jobs:
test-package:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
runs-on: ubuntu-latest
name: test-package
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Go 1.11 and Test
uses: cedrickring/golang-action/go1.11@1.6.0
env:
IMPORT: "ProspectOne/perfops-cli"
semantic-release:
needs: test-package
name: semantic-release
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- uses: actions/checkout@v1
- name: install
run: |
npm install semantic-release @semantic-release/exec -g
- name: release
run: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}