diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 436d1ca..0ed1b41 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -27,10 +27,19 @@ jobs: run: "pnpm build" - name: "Upload" + id: "upload" uses: "https://code.forgejo.org/forgejo/upload-artifact@v4" with: name: "site.zip" if-no-files-found: "error" path: | ./dist/**/* - !dist/.vite \ No newline at end of file + !dist/.vite + + - name: "Notify the web server" + run: > + curl https://moritzruth.de/_sscdc/notify + --fail + -H "Content-Type: application/json" + -H "Authorization: Bearer ${{ secrets.SSCDC_SECRET }}" + -d '{ "id": "${{ github.sha }}", "download_url": "https://git.moritzruth.de/moritzruth/moritzruth.de/actions/runs/${{ github.run_number }}/artifacts/site.zip" }' \ No newline at end of file