| rust: [stable, beta, nightly] |
| - uses: actions/checkout@master |
| - name: Install Rust Stable |
| rustup update ${{ matrix.rust }} |
| rustup default ${{ matrix.rust }} |
| - uses: actions/checkout@master |
| - name: Install Rust Stable |
| rustup component add rustfmt |
| run: cargo fmt -- --check |
| name: Publish Documentation |
| - uses: actions/checkout@master |
| - name: Install Rust Stable |
| - name: Build documentation |
| - name: Publish documentation |
| git remote add origin https://x-access-token:${{ secrets.github_token }}@github.com/${{ github.repository }} |
| git reset --hard "origin/gh-pages^" -- |
| git -c user.name='ci' -c user.email='ci' commit -m init |
| git push -f -q origin HEAD:gh-pages |
| if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' |