diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27369ea..05b7fc4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,21 +5,15 @@ on: - main jobs: build-and-deploy: - concurrency: ci-${{ github.ref }} runs-on: ubuntu-latest steps: - - name: Checkout ๐Ÿ›Ž๏ธ # ๅฐ†ไปฃ็ ๆ‹‰ๅ–ๅˆฐ่™šๆ‹Ÿๆœบ - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@master - - name: Install and Build ๐Ÿ”ง # ๅฎ‰่ฃ…ไพ่ต–ใ€ๆ‰“ๅŒ…๏ผŒๅฆ‚ๆžœๆๅ‰ๅทฒๆ‰“ๅŒ…ๅฅฝๆ— ้œ€่ฟ™ไธ€ๆญฅ - run: | - npm install - npm run build - - - name: Deploy ๐Ÿš€ # ้ƒจ็ฝฒ - uses: JamesIves/github-pages-deploy-action@v4.3.3 - with: - branch: gh-pages - folder: dist - # REPOSITORY_NAME: talktao/talktao.github.io # ่ฟ™ๆ˜ฏๆˆ‘็š„ github page ๅœฐๅ€ - # TARGET_FOLDER: Vue3-Vite-Vant-TS-H5 # ๆ‰“ๅŒ…็š„ๆ–‡ไปถๅฐ†ๆ”พๅˆฐ้™ๆ€ๆœๅŠกๅ™จ Vue3-Vite-Vant-TS-H5 ็›ฎๅฝ•ไธ‹ \ No newline at end of file + - name: Build and Deploy + uses: JamesIves/github-pages-deploy-action@master + env: + ACCESS_TOKEN: ${{ secrets.VUE3_TOKEN }} + BRANCH: gh-pages + FOLDER: build + BUILD_SCRIPT: npm install && npm run build \ No newline at end of file diff --git a/package.json b/package.json index e4433c9..c5b53d2 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "vue-vant-ts", "private": true, "version": "0.0.0", + "homepage": "https://talktao.github.io", "scripts": { "dev": "vite", "build": "vite build",