mirror of
https://github.com/TheOnlyZac/sly1.git
synced 2024-11-26 23:20:43 +00:00
Merge pull request #47 from TheOnlyZac/theonlyzac-rmaction
Remove docs auto-update action
This commit is contained in:
commit
f3593b4118
43
.github/workflows/generate_docs.yml
vendored
43
.github/workflows/generate_docs.yml
vendored
@ -1,43 +0,0 @@
|
||||
name: Generate Doxygen Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
update-gh-pages:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout main branch
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: main
|
||||
|
||||
- name: Switch to gh-pages branch
|
||||
run: git checkout gh-pages
|
||||
continue-on-error: false
|
||||
|
||||
- name: Init submodules
|
||||
run: git submodule update --init --recursive
|
||||
|
||||
- name: Clone main branch into working dir
|
||||
run: git clone https://github.com/${{ github.repository }} --branch main sly1
|
||||
|
||||
- name: Remove old docs
|
||||
run: rm -rf ./html
|
||||
|
||||
- name: Run doxygen
|
||||
run: doxygen Doxyfile
|
||||
|
||||
- name: Remove cloned project dir
|
||||
run: rm -rf ./sly1
|
||||
|
||||
- name: Commit and push changes to gh-pages
|
||||
run: |
|
||||
git config --global user.name "${{ github.actor }}"
|
||||
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
git add .
|
||||
git commit -m "Generate doxygen documentation"
|
||||
git push origin gh-pages
|
Loading…
Reference in New Issue
Block a user