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