From 322af44d7aab8ee8fab19eac13d408f909ab26ec Mon Sep 17 00:00:00 2001 From: Xmader Date: Fri, 6 Nov 2020 14:11:46 -0500 Subject: [PATCH] chore: archive release messages to archive.org --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0716c82..1a88857 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -97,3 +97,15 @@ jobs: -m "Guess what? Mirrors!

" \ -t $REF \ v$VERSION + + - name: Archive to archive.org + continue-on-error: true + env: + REPO: ${{ github.repository }} + run: | + URL="https://github.com/$REPO/releases/" + curl "https://web.archive.org/save/" \ + --compressed -s \ + -H 'Content-Type: application/x-www-form-urlencoded' \ + --data-raw "url=$URL&capture_all=on" \ + | grep github