-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.15 KB
/
deploy.yml
File metadata and controls
48 lines (41 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Deploy Docs
on:
push:
tags:
- '*'
branches:
- 'master'
paths:
- 'docs/**'
- 'mkdocs.yml'
workflow_dispatch:
inputs: {}
permissions:
contents: write
jobs:
build:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11.12'
- name: Setup Project
run: |
python -m pip install --upgrade --no-cache-dir pip setuptools mkdocs
python -m pip install --exists-action=w --no-cache-dir -r requirements.txt
- name: Build Ryu docs
run: python -m mkdocs build --clean --config-file mkdocs.yml -d MkdocsOutput/
- name: Push to the gh-pages branch
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
with:
source-directory: 'MkdocsOutput'
destination-github-username: 'Ryubing'
destination-repository-name: 'docs'
user-name: "GitHub Actions on behalf of GreemDev"
user-email: greemdev@ryujinx.app
target-branch: gh-pages