From d9fd41a9345ccefe619da01aae24cf9c5588fa65 Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 23 Mar 2024 15:00:59 +0900 Subject: [PATCH] fix --- .github/workflows/gh-pages.yml | 7 +++++++ .gitignore | 2 +- .gitmodules | 3 +++ public/.gitignore | 1 + public/README.md | 0 5 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 100644 public/.gitignore create mode 100644 public/README.md diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 86c7b65..437231e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -5,6 +5,10 @@ on: branches: - main +env: + GITEA_MAIL: ${{ secrets.GITEA_MAIL }} + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + jobs: build-deploy: runs-on: ubuntu-latest @@ -18,6 +22,9 @@ jobs: fetch-depth: 0 - run: | yarn install + rm -rf public + git clone https://${GITEA_TOKEN}@git.syui.ai/ai/card-public public + rm -rf public/.git - name: Build env: diff --git a/.gitignore b/.gitignore index 0ea04ad..d6244e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -.DS_Store node_modules dist tt @@ -6,3 +5,4 @@ app.js yarn-error.log package-lock.json yarn.lock +**DS_Store diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0204622 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "public"] + path = public + url = git@git.syui.ai:ai/card-public diff --git a/public/.gitignore b/public/.gitignore new file mode 100644 index 0000000..7176f4b --- /dev/null +++ b/public/.gitignore @@ -0,0 +1 @@ +**.DS_Store diff --git a/public/README.md b/public/README.md new file mode 100644 index 0000000..e69de29