diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 8a1b1d7..3cc5aa1 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -1,4 +1,4 @@ -name: Deploy Local +name: Deploy Ham Training Repo on: workflow_dispatch: @@ -41,37 +41,3 @@ jobs: username: ${{ secrets.SSH_DEPLOY_USER }} password: ${{ secrets.SSH_DEPLOY_PASSWORD }} script: eval "${{ secrets.SSH_DEPLOY_CMD }}" - - name: Notify Discord Success - if: success() - run: | - curl -H "Content-Type: application/json" -X POST \ - -d '{ - "embeds": [{ - "title": "✅ Gitea Local Deployment Success!", - "description": "**Details:**\n- Image: `${{ env.CONTAINER_IMAGE_NAME }}`\n- Deployed by: `${{ github.actor }}`", - "color": 3066993, - "footer": { - "text": "Local Release Notification", - "icon_url": "https://example.com/success-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }} - - name: Notify Discord Failure - if: failure() - run: | - curl -H "Content-Type: application/json" -X POST \ - -d '{ - "embeds": [{ - "title": "❌ Gitea Local Deployment Failed!", - "description": "**Details:**\n- Image: `${{ env.CONTAINER_IMAGE_NAME }}`\n- Attempted by: `${{ github.actor }}`", - "color": 15158332, - "footer": { - "text": "Local Release Notification", - "icon_url": "https://example.com/failure-icon.png" - }, - "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" - }] - }' \ - ${{ secrets.DISCORD_WEBHOOK }}