Skip to content

Commit

Permalink
chore(ci): split review and release steps
Browse files Browse the repository at this point in the history
This is to make it so that the release flow is only run on master while
the review step can run everywhere.

Also changed so that we use the Einride bot personal access token rather
than the token of the person that pushed.
  • Loading branch information
Edholm committed Dec 6, 2021
1 parent ff7cc75 commit c69b74d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
30 changes: 1 addition & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- master
- "*"
pull_request:
branches:
- "*"
Expand All @@ -20,33 +20,5 @@ jobs:
with:
go-version: ^1.17

- name: Setup Node
uses: actions/[email protected]
with:
node-version: 16

- name: Make
run: make

release:
needs: [make]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ^1.17

- name: Setup Node
uses: actions/[email protected]
with:
node-version: 16

- name: Run semantic-release
run: make semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:
branches:
- master
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ^1.17

- name: Run semantic-release
run: make semantic-release
env:
GITHUB_TOKEN: ${{ secrets.EINRIDEBOT_PERSONAL_ACCESS_TOKEN }}

0 comments on commit c69b74d

Please sign in to comment.