fix: deploy using deploy key (#5)
Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
@@ -16,6 +16,13 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup SSH Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
@@ -65,18 +72,16 @@ jobs:
|
||||
GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
run: |
|
||||
pnpm i
|
||||
pnpm format
|
||||
pnpm release
|
||||
pnpm format
|
||||
|
||||
- name: Commit & Push Changes
|
||||
env:
|
||||
MY_PAT_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
run: |
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
git config --global user.name "gitea-actions"
|
||||
git config --global user.email "actions-user@noreply.git.demonkernel.io.vn"
|
||||
|
||||
git remote set-url origin https://x-access-token:${MY_PAT_TOKEN}@git.demonkernel.io.vn/${{ github.repository }}.git
|
||||
git remote set-url origin git@git.demonkernel.io.vn:${{ github.repository }}.git
|
||||
|
||||
git add .
|
||||
git commit -m "chore: release [ci skip]"
|
||||
|
||||
Reference in New Issue
Block a user