Skip to content

Commit a193074

Browse files
author
evombau
committed
...
1 parent df839c3 commit a193074

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

.github/workflows/Release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths-ignore:
8+
- 'README.md'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.15
20+
- name: Build
21+
run: go build -v
22+
- name: Upload a Build Artifact
23+
uses: actions/[email protected]
24+
with:
25+
path: awesome-ci
26+
- name: Create Release
27+
run: ./assets/awesome-ci-semver createRelease
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/branchPR.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: Build PR
22

33
on:
4+
push:
5+
branches-ignore:
6+
- "master"
47
pull_request:
58
paths-ignore:
69
- 'README.md'
710
types: [assigned, opened, synchronize, reopened, edited]
811

912
jobs:
10-
setup:
13+
build:
1114
runs-on: ubuntu-latest
1215
steps:
1316
- name: Checkout code
@@ -16,10 +19,6 @@ jobs:
1619
uses: actions/setup-go@v2
1720
with:
1821
go-version: 1.15
19-
build:
20-
needs: setup
21-
runs-on: ubuntu-latest
22-
steps:
2322
- name: Build
2423
run: go build -v
2524
- name: Upload a Build Artifact

0 commit comments

Comments
 (0)