summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflow/build.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflow/build.yml b/.github/workflow/build.yml
new file mode 100644
index 000000000..dffefe41d
--- /dev/null
+++ b/.github/workflow/build.yml
@@ -0,0 +1,26 @@
+name: Build Pages by YDH
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Move directory
+ run: |
+ to_move=$(echo *)
+ mkdir -p _site/v1
+ mv $to_move _site/v1
+ cp .github/CNAME _site/CNAME
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v4
+ with:
+ publish_dir: ./_site
+ github_token: ${{ secrets.GITHUB_TOKEN }}