forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Armbian AutoPatcher
committed
Jan 9, 2025
1 parent
1abf77f
commit c223d35
Showing
2 changed files
with
221 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
name: publish-ghpages | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Do NOT checkout this. It is a kernel tree and takes a long time, and it's not necessary. | ||
- name: Grab README.md | ||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
run: | | ||
curl -s https://raw.githubusercontent.com/${{ github.repository }}/${BRANCH_NAME}/README.md > README.md | ||
ls -la README.md | ||
# install grip via pip, https://github.com/joeyespo/grip; rpardini's fork https://github.com/rpardini/grip | ||
- name: Install grip | ||
run: | | ||
pip3 install https://github.com/rpardini/grip/archive/refs/heads/master.tar.gz | ||
- name: Run grip to gen ${{ github.head_ref || github.ref_name }} | ||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
run: | | ||
mkdir -p public | ||
grip README.md --context=${{ github.repository }} --title="${BRANCH_NAME}" --wide --user-content --export "public/${BRANCH_NAME}.html" || true | ||
ls -la public/ | ||
- name: Deploy to GitHub Pages (gh-pages branch) | ||
if: success() | ||
uses: crazy-max/ghaction-github-pages@v3 | ||
with: | ||
target_branch: gh-pages | ||
build_dir: public | ||
keep_history: true | ||
jekyll: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.