diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c20e76f..4f3da2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ -name: ci-push +name: ci-pr on: - push: + pull_request: branches-ignore: - staging - production diff --git a/.github/workflows/guide.yml b/.github/workflows/guide.yml new file mode 100644 index 0000000..b527594 --- /dev/null +++ b/.github/workflows/guide.yml @@ -0,0 +1,23 @@ +name: ci-guide +on: + pull_request: + branches-ignore: + - staging +jobs: + build-book: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: init + run: | + url="https://github.com/rust-lang/mdBook/releases/download/v0.4.47/mdbook-v0.4.47-x86_64-unknown-linux-gnu.tar.gz" + mkdir mdbook + curl -sSL $url | tar -xz --directory=./mdbook + echo `pwd`/mdbook >> $GITHUB_PATH + - name: build + run: | + cd guide + mdbook build || exit 1 + ls book