From 283c6f231f1ab4a1b46a75f7b8dee3c7ab24656c Mon Sep 17 00:00:00 2001 From: Michael Yuan Date: Wed, 8 Apr 2020 17:42:33 -0500 Subject: [PATCH] Create rbe.yml --- .github/workflows/rbe.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/rbe.yml diff --git a/.github/workflows/rbe.yml b/.github/workflows/rbe.yml new file mode 100644 index 0000000000..77d4fd075c --- /dev/null +++ b/.github/workflows/rbe.yml @@ -0,0 +1,33 @@ +name: Build and Publish + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install mdbook + run: cargo install mdbook + + - name: Build + run: mdbook build + + - name: Publish + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./book + + - name: Upload Artifact + uses: actions/upload-artifact@v1 + with: + name: rust-by-example + path: book