Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bump igorjs/gh-actions-clean-workflow from 6 to 7#635

Bump igorjs/gh-actions-clean-workflow from 6 to 7

Bump igorjs/gh-actions-clean-workflow from 6 to 7 #635

Workflow file for this run

name:Create docs preview on PR
on:
pull_request:
types:[opened, reopened, synchronize, labeled]
workflow_dispatch:
permissions:
contents:write
pull-requests:write
jobs:
docs-preview:
runs-on:ubuntu-latest
steps:
-name:Checkout PR branch (documentation)
uses:actions/checkout@v5
with:
ref:${{ github.event.pull_request.head.sha }}
path:documentation
-name:Checkout `www` branch
uses:actions/checkout@v5
with:
ref:www
path:www
-name:Set up Python 3.8
uses:actions/setup-python@v6
with:
python-version:3.8
-name:Cache pip dependencies
uses:actions/cache@v4
with:
path:~/.cache/pip
key:${{ runner.os }}-pip-${{ hashFiles('documentation/requirements.txt') }}
restore-keys:|
${{ runner.os }}-pip-
-name:Install dependencies
working-directory:documentation
run:|
python -m pip install --upgrade pip
pip install setuptools wheel
pip install -r requirements.txt
-name:Build docs with MkDocs
working-directory:documentation
run:mkdocs build --clean
-name:Publish to `www` branch
working-directory:www
run:|
mkdir -p "${{ github.event.number }}"
rsync -av ../documentation/site/. "${{ github.event.number }}"
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Update docs preview for PR #${{ github.event.number }}" ||true
git push origin www ||true
-name:Comment on PR with preview link
uses:devindford/Append_PR_Comment@v1.1.3
with:
repo-token:${{ secrets.GITHUB_TOKEN }}
body-template:|
[![Create docs preview on PR](https://github.com/armbian/documentation/actions/workflows/pdf-at-pr.yaml/badge.svg)](https://github.com/armbian/documentation/actions/workflows/pdf-at-pr.yaml)
Documentation website preview will be available shortly:
<a href="https://armbian.github.io/documentation/${{ github.event.number }}"><kbd><br> Open WWW preview <br></kbd></a>
body-update-action:suffix

[8]ページ先頭

©2009-2025 Movatter.jp