diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index d275c2a..ca4f86f 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -15,9 +15,6 @@ jobs: uses: https://github.com/actions/checkout@v4 with: fetch-depth: 0 # whole history and tags, can refine this later - persist-credentials: false # don’t leave the HTTPS token in origin - ssh-key: ${{ secrets.GIT_SSH_KEY }} - ssh-strict: false - name: Setup node uses: https://github.com/actions/setup-node@v4 @@ -79,8 +76,12 @@ jobs: done - name: Update deployment tag + env: + GIT_HOST_NAME: ${{ secrets.GIT_HOST_NAME }} + GIT_REPO: ${{ secrets.GIT_REPO }} run: | # todo this could cause a race condition - git config user.name "CI" + git config user.name "CI Bot" git config user.email "ci@dominikmilacher.com" git tag -f last-deploy HEAD + git remote set-url origin git@"GIT_HOST_NAME":"GIT_REPO".git git push origin last-deploy --force \ No newline at end of file