From 6621aaadae0baf0d1c458aa97dff50e26826a4c1 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Mon, 24 Jun 2024 13:28:27 +0800 Subject: [PATCH] ci: update workflows config. --- .github/FUNDING.yml | 3 +++ .github/workflows/ci.yml | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..abe8b762 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +ko_fi: jaywcjlove +buy_me_a_coffee: jaywcjlove +custom: ["https://www.paypal.me/kennyiseeyou", "https://jaywcjlove.github.io/#/sponsor"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c3cc189..70eb95c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,10 +8,10 @@ jobs: build-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: npm install - run: npm run build @@ -33,8 +33,8 @@ jobs: - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: - commit_message: ${{steps.tag_version.outputs.tag}} - ${{ github.event.head_commit.message }} - full_commit_message: ${{steps.tag_version.outputs.tag}} - ${{ github.event.head_commit.message }} + commit_message: ${{ github.event.head_commit.message }} + full_commit_message: ${{ github.event.head_commit.message }} github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build @@ -57,6 +57,7 @@ jobs: uses: ncipollo/release-action@v1 if: steps.create_tag.outputs.successful with: + allowUpdates: true token: ${{ secrets.GITHUB_TOKEN }} name: ${{ steps.create_tag.outputs.version }} tag: ${{ steps.create_tag.outputs.version }}