Skip to content

Remove gh-pages deployment #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 3 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
matrix:
rust: [stable, beta, nightly]
steps:
- uses: actions/checkout@master
- name: Install Rust Stable
- uses: actions/checkout@v3
- name: Install Rust ${{ matrix.rust }}
run: |
rustup self update
rustup update ${{ matrix.rust }}
Expand All @@ -23,34 +23,11 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- name: Install Rust Stable
run: |
rustup update stable
rustup default stable
rustup component add rustfmt
- name: Run rustfmt
run: cargo fmt -- --check

publish_docs:
name: Publish Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust Stable
run: |
rustup update stable
rustup default stable
- name: Build documentation
run: cargo doc --no-deps
- name: Publish documentation
run: |
cd target/doc
git init
git remote add origin https://x-access-token:${{ secrets.github_token }}@github.com/${{ github.repository }}
git fetch origin
git reset --hard "origin/gh-pages^" --
git add .
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'