From 2200cf407d9fbfb41b738f2e68a2e504ac697d1b Mon Sep 17 00:00:00 2001 From: Alexis Mousset Date: Sat, 30 Nov 2019 12:39:56 +0000 Subject: [PATCH] Create website.yml --- .github/workflows/website.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/website.yml diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml new file mode 100644 index 0000000..5272e5b --- /dev/null +++ b/.github/workflows/website.yml @@ -0,0 +1,21 @@ +name: Website + +on: + push: + branches: + - v0.9.x + +jobs: + build-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - run: cargo install mdbook mdbook-linkcheck + - run: cd website && mdbook build + - run: echo "lettre.at" > website/_book/html/CNAME + - name: Deploy + uses: peaceiris/actions-gh-pages@v2.5.0 + env: + ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: ./website/_book