Skip to content
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

Destroy history of github-pages branch #3783

Merged
merged 1 commit into from
Aug 7, 2024
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
11 changes: 6 additions & 5 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ jobs:
git config --local user.name "AWS SDK Rust Bot"
git config --local user.email "[email protected]"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}
git fetch origin github-pages
REV=$(git rev-parse --short HEAD)

pushd design &>/dev/null
cargo install mdbook
cargo install --locked mdbook-mermaid
mdbook build --dest-dir ../../output
popd &>/dev/null

git checkout origin/github-pages -b github-pages
rm -rf design
git checkout --orphan github-pages
git rm --cached -r .
git clean -ffdx
mv ../output design
git add design
git commit -m "Update design docs"
git push origin github-pages
git commit -m "Design docs @ ${{ github.repository }}@${REV}"
git push origin github-pages --force
Loading