Skip to content

Commit

Permalink
Armbian patching summary README
Browse files Browse the repository at this point in the history
  • Loading branch information
Armbian AutoPatcher committed Jan 9, 2025
1 parent 1abf77f commit c223d35
Show file tree
Hide file tree
Showing 2 changed files with 221 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/publish-ghpages.yaml
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 }}
Loading

0 comments on commit c223d35

Please sign in to comment.