summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml11
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ad86b1187..c07ca6ef2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -12,12 +12,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: Move directory (except _site and .github)
+ - name: Prepare _site
run: |
mkdir _site
- shopt -s extglob
- mv !( _site|.github ) _site/
- cp .github/CNAME _site/
+ for item in *; do
+ if [ "$item" != "_site" ] && [ "$item" != ".github" ]; then
+ mv "$item" _site/
+ fi
+ done
+ cp .github/CNAME _site/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v4