Skip to content

Merge pull request #3 from flagship-io/feat/add-doc #2

Merge pull request #3 from flagship-io/feat/add-doc

Merge pull request #3 from flagship-io/feat/add-doc #2

Workflow file for this run

name: documentation
on:
push:
branches:
- main
permissions:
contents: write
jobs:
docit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Copy the Readmes
run: |
cp ./abtasty-cli/README.md ./abtasty-cli/docs/index.md
cp ./abtasty-cli/CONTRIBUTING.md ./abtasty-cli/docs
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Add changes" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PUBLISHER_TOKEN }}
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force