ci: change working dir for circleci #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Build | |
if: "!contains(github.event.commits[0].message, 'ci skip')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup golang v1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.13 | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Build monorepo | |
env: | |
COMMIT_RANGE: "${{github.event.before}}..${{github.sha}}" | |
# Compatibility for CircleCI 2.0 | |
CIRCLE_SHA1: ${{github.sha}} | |
shell: bash | |
run: | | |
chmod +x ./build.sh | |
./build.sh |