-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,21 @@ on: | |
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
fetch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
- name: Install Rust packages | ||
- name: Install mdbook | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://rossmacarthur.github.io/install/crate.sh | bash -s -- --repo "rust-lang/mdBook" --bin mdbook --to ~/.cargo/bin | ||
version="v0.4.36" | ||
mkdir installed-bins | ||
curl -Lf "https://github.com/rust-lang/mdBook/releases/download/{$version}/mdbook-{$version}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./installed-bins | ||
echo `pwd`/installed-bins >> $GITHUB_PATH | ||
- name: Install gh-pages | ||
run: | | ||
npm install gh-pages@"~6.1.1" | ||
|
@@ -33,7 +39,6 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name 'Automation' | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | ||
- name: Deploy to GitHub pages | ||
run: | | ||
npx gh-pages --message "Deploy docs" --no-history --dist build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters