Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Commit

Permalink
ci: merge build and release step
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed May 17, 2020
1 parent 2164cbb commit d4887ce
Showing 1 changed file with 16 additions and 23 deletions.
39 changes: 16 additions & 23 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,22 @@ on:

jobs:

build:
name: Build
buildAndRelease:
name: Build and release
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Build
working-directory: src
run: go build -o ../dist/terraform-provider-nginx .
- name: Build
working-directory: src
run: go build -o ../dist/terraform-provider-nginx .

release:
needs: build
runs-on: ubuntu-latest
env:
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: stackhead-bot
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: stackhead-bot
steps:
- uses: actions/checkout@master
- name: Setup node
uses: actions/setup-node@v1
with:
Expand All @@ -49,3 +37,8 @@ jobs:
uses: saitho/semantic-release-action-pnpm@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
env:
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: stackhead-bot
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: stackhead-bot

0 comments on commit d4887ce

Please sign in to comment.