26 lines
713 B
YAML
26 lines
713 B
YAML
name: Deploy
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
pages:
|
|
name: GitHub Pages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- uses: cachix/install-nix-action@v6
|
|
- name: Install Rust (rustup)
|
|
run: rustup update stable --no-self-update && rustup default stable
|
|
- name: Build book
|
|
run: nix-shell --run ci/build.sh
|
|
- name: Deploy to GitHub
|
|
env:
|
|
GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}
|
|
run: |
|
|
touch book/.nojekyll
|
|
curl -LsSf https://raw.githubusercontent.com/rust-lang/simpleinfra/master/setup-deploy-keys/src/deploy.rs | nix-shell --run 'rustc - -o /tmp/deploy'
|
|
cd book
|
|
/tmp/deploy
|