forked from openhpi-cloud/docker-plugin-cinder
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 916 Bytes
/
go.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
---
name: Go
on:
push:
branches: [master]
tags: v[0-9].*
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: debug
run: pwd && ls -l && env
- name: Create release
uses: Roang-zero1/github-create-release-action@master
if: contains(github.ref, 'tags')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub release
uses: Roang-zero1/github-upload-release-artifacts-action@master
if: contains(github.ref, 'tags')
with:
args: docker-plugin-cinder
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}