From d0019630f6eea333536cc668e7634243bd33f774 Mon Sep 17 00:00:00 2001 From: Kslr Date: Sun, 8 Nov 2020 11:24:18 +0800 Subject: [PATCH] Update deb.yml --- .github/workflows/deb.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index 139e7fe1a..4a06f7233 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -35,4 +35,18 @@ jobs: with: name: v2ray-debian-packages path: ./*.deb + - name: Setup Repository + if: github.event_name == 'release' && !contains(github.ref, 'pre') + run: | + git clone https://github.com/v2fly/debian.git archive + echo ${{ secrets.GPG_KEY }} | base64 -d > private.key + gpg --import private.key + cd archive + git config --local user.name "${{ github.actor }}" + git config --local user.email "${{ github.actor }}@users.noreply.github.com" + git remote set-url origin https://${{ github.actor }}:${{ secrets.DEBIAN_REPO_TOKEN }}@github.com/v2fly/debian.git + reprepro includedeb ../*.deb + git add -A + git commit -am 'update' + git push origin master