docs #42
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: docs | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Deploy to gh-pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: 'master' | |
submodules: 'recursive' | |
- run: | | |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | |
- run: | | |
cp ./README.md ./docs/content/_index.md | |
- run: | | |
cp ./CHANGELOG.md ./docs/content/changelog.md | |
- run: | | |
git config --global user.email "ayratin555@gmail.com" | |
git config --global user.name "Ayrat Badykov" | |
git add . && git commit -m "Commit copied files" | |
- name: Deploy docs | |
run: | | |
source ./docs/deploy.sh && build && deploy |