various fixes
Some checks failed
Galvanic Corrosion Cross-Compile / build (push) Failing after 39s

* Reverted shutdown mechanism
* Socket authentication fix for Cloudflare users
    - Cloudflare formats headers
* Steam auth verbose
* Upload artifacts to CDN and send Discord webhook link in #dev
This commit is contained in:
2025-05-12 20:57:52 -04:00
parent 83440a9245
commit 9ce5431d9d
12 changed files with 98 additions and 144 deletions

View File

@@ -25,11 +25,36 @@ jobs:
- name: Get short commit hash
id: get_hash
run: echo "HASH=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV
- name: Rename Linux build
run: mv build/GalvanicCorrosion build/GalvanicCorrosion-$HASH
- name: Upload builds
uses: actions/upload-artifact@v3
- name: Rename Windows build
run: mv build/GalvanicCorrosion.exe build/GalvanicCorrosion-$HASH.exe
- name: Upload Linux build to CDN
env:
API_KEY: ${{ secrets.API_KEY }}
SERVER_URL: https://cdn.proxnet.dev/upload
run: |
curl -X POST "$SERVER_URL" \
-H "x-api-key: $API_KEY" \
-F "file=@build/GalvanicCorrosion" \
- name: Upload Windows build to CDN
env:
API_KEY: ${{ secrets.API_KEY }}
SERVER_URL: https://cdn.proxnet.dev/upload
run: |
curl -X POST "$SERVER_URL" \
-H "x-api-key: $API_KEY" \
-F "file=@build/GalvanicCorrosion.exe" \
- name: Discord Webhook - Storage Links
uses: tsickert/discord-webhook@v7.0.0
with:
name: GalvanicCorrosion-${{ env.HASH }}
path: |
build/*
retention-days: 30
webhook-url: ${{ secrets.WEBHOOK_URL }}
username: Galvanic Corrosion Gitea Actions
embed-title: Storage Links | ${{ env.HASH }}
embed-description: |
"Artifacts ($HASH)\n\n[Linux](https://cdn.proxnet.dev/cdn/GalvanicCorrosion-$HASH) - [Windows](https://cdn.proxnet.dev/cdn/GalvanicCorrosion-$HASH.exe)"