From 3fc635f867acb1b90a60811369ab1fd48fc70057 Mon Sep 17 00:00:00 2001 From: moritzruth Date: Fri, 28 Feb 2025 23:46:07 +0100 Subject: [PATCH 1/4] Update .forgejo/workflows/deploy.yaml --- .forgejo/workflows/deploy.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 436d1ca..c7dc57f 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -27,10 +27,17 @@ 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 + -H "Content-Type: application/json" + -H "Authorization: Bearer ${{ secrets.SSCDC_SECRET }}" + -d '{ "id": "${{ github.sha }}", "download_url": "${{ steps.upload.outputs.artifact-url }}" }' \ No newline at end of file From 000cf6e18e2ee4974da922d94a6a5d516ff0e685 Mon Sep 17 00:00:00 2001 From: moritzruth Date: Fri, 28 Feb 2025 23:47:10 +0100 Subject: [PATCH 2/4] Update .forgejo/workflows/deploy.yaml --- .forgejo/workflows/deploy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index c7dc57f..98e4bc1 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -37,7 +37,8 @@ jobs: !dist/.vite - name: "Notify the web server" - run: curl https://moritzruth.de/_sscdc/notify + run: > + curl https://moritzruth.de/_sscdc/notify -H "Content-Type: application/json" -H "Authorization: Bearer ${{ secrets.SSCDC_SECRET }}" -d '{ "id": "${{ github.sha }}", "download_url": "${{ steps.upload.outputs.artifact-url }}" }' \ No newline at end of file From 7af28ffad410b7e12b4ab24970a6701d92b1f3f9 Mon Sep 17 00:00:00 2001 From: moritzruth Date: Sat, 1 Mar 2025 00:01:18 +0100 Subject: [PATCH 3/4] Update .forgejo/workflows/deploy.yaml --- .forgejo/workflows/deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 98e4bc1..3aa7982 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -39,6 +39,7 @@ jobs: - 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": "${{ steps.upload.outputs.artifact-url }}" }' \ No newline at end of file From e3387afd3cf16842d8345c267c34005f65bae32d Mon Sep 17 00:00:00 2001 From: moritzruth Date: Sat, 1 Mar 2025 00:27:05 +0100 Subject: [PATCH 4/4] Update .forgejo/workflows/deploy.yaml --- .forgejo/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 3aa7982..0ed1b41 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -42,4 +42,4 @@ jobs: --fail -H "Content-Type: application/json" -H "Authorization: Bearer ${{ secrets.SSCDC_SECRET }}" - -d '{ "id": "${{ github.sha }}", "download_url": "${{ steps.upload.outputs.artifact-url }}" }' \ No newline at end of file + -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