Add documentation for Add option to disable the copper oxidation prox… #167
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: Push docs to PurpurWebsite | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.md' | |
- 'mkdocs/**' | |
- 'mkdocs.yml' | |
- '**.js' | |
- '**.html' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9.16' | |
- name: Build docs | |
run: | | |
pip install -r requirements.txt | |
mkdocs build -d docs | |
- name: Push to PurpurWebsite repo | |
uses: granny/copy_file_to_another_repo_action@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source_file: 'docs' | |
destination_repo: 'PurpurMC/PurpurWebsite' | |
destination_folder: 'public' | |
destination_branch: master | |
user_email: '41898282+github-actions[bot]@users.noreply.github.com' | |
user_name: 'github-actions' | |
commit_message: "Update from ${GITHUB_REPOSITORY}@${GITHUB_SHA:0:7}" |