Skip to content

Commit 9f031aa

Browse files
author
evombau
committed
more workflows
1 parent f4fde82 commit 9f031aa

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/Release.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths-ignore:
8+
- 'README.md'
9+
10+
jobs:
11+
setup:
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+
build:
21+
needs: setup
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Build
25+
run: go build -v
26+
- name: Upload a Build Artifact
27+
uses: actions/[email protected]
28+
with:
29+
path: awesome-ci
30+
- name: Create Release
31+
run: ./assets/awesome-ci-semver createRelease
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/branchPR.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
types: [assigned, opened, synchronize, reopened, edited]
88

99
jobs:
10-
11-
build:
10+
setup:
1211
runs-on: ubuntu-latest
1312
steps:
1413
- name: Checkout code
@@ -17,6 +16,10 @@ jobs:
1716
uses: actions/setup-go@v2
1817
with:
1918
go-version: 1.15
19+
build:
20+
needs: setup
21+
runs-on: ubuntu-latest
22+
steps:
2023
- name: Build
2124
run: go build -v
2225
- name: Upload a Build Artifact

0 commit comments

Comments
 (0)