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

Commit

Permalink
ci: separate build and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Jun 11, 2020
1 parent 614f9b4 commit 5a7423e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and release
name: Test and build

on:
push:
Expand All @@ -24,9 +24,8 @@ jobs:
working-directory: src
run: go test -v ./...

buildAndRelease:
build:
needs: test
name: Build and release
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
Expand All @@ -45,20 +44,3 @@ jobs:
uses: actions/upload-artifact@v2
with:
path: dist/terraform-provider-nginx

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
- name: PNPM install
run: npm i -g pnpm && pnpm i -P
- run: pnpm install
- name: Semantic Release Action
uses: saitho/semantic-release-action-pnpm@master
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
env:
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: stackhead-bot
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: stackhead-bot
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: terraform-provider-nginx
path: dist/terraform-provider-nginx
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
- name: PNPM install
run: npm i -g pnpm && pnpm i -P
- run: pnpm install
- name: Semantic Release Action
uses: saitho/semantic-release-action-pnpm@master
env:
GITHUB_TOKEN: ${{ secrets.GH_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 5a7423e

Please sign in to comment.