Create Longest_Substring_Without_Repeating_Characters.cpp (#2761) #472
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
name: Doxygen CI | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install requirements | |
run: | | |
brew install graphviz ninja doxygen | |
- name: configure | |
run: cmake -G Ninja -B ./build -S . | |
- name: build | |
run: cmake --build build -t doc | |
- name: gh-pages | |
uses: actions/checkout@v4 | |
with: | |
ref: "gh-pages" | |
clean: false | |
- name: Move & Commit files | |
run: | | |
git config --global user.name "$GITHUB_ACTOR" | |
git config --global user.email "[email protected]" | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
rm -rf d* && rm *.html && rm *.svg && rm *.map && rm *.md5 && rm *.png && rm *.js && rm *.css | |
git add . | |
cp -rp ./build/html/* . && rm -rf ./build && ls -lah | |
git add . | |
git commit -m "Documentation for $GITHUB_SHA" || true | |
git push --force || true |