From b54e47019c84256a99be6121f79eab31c4c18933 Mon Sep 17 00:00:00 2001 From: SunsetWolf Date: Fri, 2 Aug 2024 09:53:13 +0000 Subject: [PATCH 1/4] fix release ci error --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 00817980..05b627e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,14 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine bump2version git-changelog # better-exceptions(optional for debug) + - name: Set up SSH + env: + SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + run: | + mkdir -p ~/.ssh + echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts - name: Bump version run: | git config --global user.name 'github-actions[bot]' From 67ad3b3bf410232402242108eeaa77c1b7f35376 Mon Sep 17 00:00:00 2001 From: SunsetWolf Date: Fri, 2 Aug 2024 10:04:44 +0000 Subject: [PATCH 2/4] optimize release ci --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05b627e9..e74223ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,8 +28,9 @@ jobs: env: SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} run: | + rm -rf ~/.ssh mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa + echo "${{ secrets.PRIVATE_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa ssh-keyscan github.com >> ~/.ssh/known_hosts - name: Bump version From 2c9ac1ba493a008924961133dbc65127bcb6d030 Mon Sep 17 00:00:00 2001 From: you-n-g Date: Fri, 2 Aug 2024 18:09:31 +0800 Subject: [PATCH 3/4] Update .github/workflows/release.yml --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e74223ce..7e6992f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,6 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine bump2version git-changelog # better-exceptions(optional for debug) - name: Set up SSH - env: SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} run: | rm -rf ~/.ssh From 7c1f5f66c618d8033426d099a1b9040ae0d7f44e Mon Sep 17 00:00:00 2001 From: you-n-g Date: Fri, 2 Aug 2024 18:09:45 +0800 Subject: [PATCH 4/4] Update .github/workflows/release.yml --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e6992f2..4d7f8add 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,6 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine bump2version git-changelog # better-exceptions(optional for debug) - name: Set up SSH - SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} run: | rm -rf ~/.ssh mkdir -p ~/.ssh