Compare commits

...

1 Commits

Author SHA1 Message Date
TakahashiNguyen 7db7e6de1e fix: deploy using deploy key (#5)
Release package / release (push) Successful in 3m1s
Java CI with Maven / build-and-test (push) Successful in 3m19s
Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com>
Reviewed-on: #5
2026-03-25 04:41:50 +00:00
+9 -4
View File
@@ -16,6 +16,13 @@ jobs:
with: with:
fetch-depth: 0 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 - name: Set up JDK
uses: actions/setup-java@v5 uses: actions/setup-java@v5
with: with:
@@ -65,18 +72,16 @@ jobs:
GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN }} GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: | run: |
pnpm i pnpm i
pnpm format
pnpm release pnpm release
pnpm format
- name: Commit & Push Changes - name: Commit & Push Changes
env:
MY_PAT_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: | run: |
if [ -n "$(git status --porcelain)" ]; then if [ -n "$(git status --porcelain)" ]; then
git config --global user.name "gitea-actions" git config --global user.name "gitea-actions"
git config --global user.email "actions-user@noreply.git.demonkernel.io.vn" 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 add .
git commit -m "chore: release [ci skip]" git commit -m "chore: release [ci skip]"