Skip to content

Commit 73897e0

Browse files
committed
add github action for pages
1 parent 41c4766 commit 73897e0

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Thanks to https://github.com/jlumbroso/lfs-to-github-pages
2+
name: GitHub Pages Build
3+
4+
on:
5+
push:
6+
branches:
7+
- master # Set a branch to deploy
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: 🛎️ Checkout
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
20+
lfs: true # Fetch large files
21+
22+
- name: ❌ Turn off LFS
23+
run: >-
24+
git lfs uninstall;
25+
rm -Rf .git;
26+
rm .gitattributes;
27+
rm repo-pkgbuild/ -rf;
28+
rm docker/ -rf;
29+
rm generate-env.sh packages LICENCE run-build-docker.sh;
30+
31+
- name: 🚀 Deploy to `gh-pages` branch
32+
uses: peaceiris/actions-gh-pages@v3.9.0
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./
36+
publish_branch: gh-pages
37+
user_name: "github-actions[bot]"
38+
user_email: "github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)