From 5f746d4ffad8112b3e9329bb231eb0d6fc013491 Mon Sep 17 00:00:00 2001 From: thejinchao Date: Thu, 20 Feb 2025 22:38:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0deploy=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 17 +++++++++++++++++ .gitignore | 1 + 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 .gitignore diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..16159f4 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,17 @@ +name: Build and Deploy +on: [push] +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Build and Deploy + uses: jenkey2011/vuepress-deploy@master + env: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + TARGET_REPO: thejinchao/thejinchao.github.io + TARGET_BRANCH: gh_pages + BUILD_SCRIPT: yarn && yarn build + BUILD_DIR: docs/.vuepress/dist/ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07e6e47 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/node_modules