PayloadsAllTheThings/.github/workflows/ci.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2023-02-11 19:11:33 +00:00
name: ci
on:
push:
branches:
- master
- main
# At minute 0 past every 6th hour
schedule:
- cron: "0 */6 * * *"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
# Checks-out submodules
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
git config --global user.email "you@example.com"
git config --global user.name "Swk"
git config --global pull.rebase false
git submodule add https://github.com/swisskyrepo/PayloadsAllTheThings/ docs
# git submodule sync --recursive
# git submodule foreach git pull origin master --allow-unrelated-histories
# git submodule update --init --force --recursive
# git submodule update --remote --merge
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip install mkdocs-git-revision-date-localized-plugin
- run: pip install mkdocs-git-committers-plugin
- run: mkdocs gh-deploy --force