infra: remove Forgejo release from deploy script
This commit is contained in:
parent
f049e4cd36
commit
548e6a8095
1 changed files with 0 additions and 15 deletions
|
|
@ -81,21 +81,6 @@ jobs:
|
||||||
git tag ${{ steps.version.outputs.new_tag }}
|
git tag ${{ steps.version.outputs.new_tag }}
|
||||||
git push origin ${{ steps.version.outputs.new_tag }}
|
git push origin ${{ steps.version.outputs.new_tag }}
|
||||||
|
|
||||||
- name: Create Forgejo Release
|
|
||||||
if: steps.version.outputs.new_tag != ''
|
|
||||||
run: |
|
|
||||||
# Read and escape commit message for JSON
|
|
||||||
commit_msg=$(cat /tmp/commit_msg.txt | sed 's/\\/\\\\/g' | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')
|
|
||||||
|
|
||||||
curl -X POST \
|
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases" \
|
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d "{
|
|
||||||
\"tag_name\": \"${{ steps.version.outputs.new_tag }}\",
|
|
||||||
\"name\": \"${{ steps.version.outputs.new_tag }}\",
|
|
||||||
\"body\": \"$commit_msg\"
|
|
||||||
}"
|
|
||||||
- name: Deploy to VPS
|
- name: Deploy to VPS
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.VPS_DEPLOY_USER_SSH_KEY }}" > /tmp/ssh_key
|
echo "${{ secrets.VPS_DEPLOY_USER_SSH_KEY }}" > /tmp/ssh_key
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue