Skip to content

Commit

Permalink
New workflow for building & deploying the rust-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Feb 3, 2023
1 parent eff9ddb commit 576bf6d
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,16 @@ jobs:
RUSTFLAGS: ${{env.RUSTFLAGS}}
RUSTDOCFLAGS: ${{env.RUSTDOCFLAGS}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Don't do a shallow clone since we need to push gh-pages

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
cache-dependency-path: "rerun_py/requirements-lint.txt"

- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -149,6 +158,19 @@ jobs:
command: test
args: --all-targets --all-features

- name: Set up git author
run: |
remote_repo="https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# See: https://github.com/c-w/ghp-import
- name: Deploy the docs
run: |
ghp-import -n -p -x rust target/doc/ -m "Update the rust docs"
# ---------------------------------------------------------------------------

rs-check-wasm:
Expand Down

0 comments on commit 576bf6d

Please sign in to comment.