From 07e3fb00a87fcba9cdbfa766a57078a77a90538b Mon Sep 17 00:00:00 2001 From: Pablo RUTH Date: Tue, 6 Jun 2023 12:20:09 +0000 Subject: [PATCH] Move APT repository to GH Pages (#176) --- .github/workflows/tag.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 4e685cc..c1d1c10 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -37,12 +37,22 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} - - name: Get the version - id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} + - name: Checkout apt repository + uses: actions/checkout@v2 + with: + repository: signmykeyio/apt + token: ${{ secrets.PUSH_TOKEN }} + path: apt-repo + + - name: Copy deb file to apt repository + run: | + cp bin/*.deb apt-repo - - uses: jfrog/setup-jfrog-cli@v1 - - run: | - jfrog rt upload --url https://signmykey.jfrog.io/artifactory/ --apikey=${{ secrets.JFROG_APIKEY }} --deb stable/main/amd64 bin/signmykey_${{ steps.get_version.outputs.VERSION }}_amd64.deb signmykey-deb/ - jfrog rt upload --url https://signmykey.jfrog.io/artifactory/ --apikey=${{ secrets.JFROG_APIKEY }} --deb stable/main/arm64 bin/signmykey_${{ steps.get_version.outputs.VERSION }}_arm64.deb signmykey-deb/ - jfrog rt upload --url https://signmykey.jfrog.io/artifactory/ --apikey=${{ secrets.JFROG_APIKEY }} bin/signmykey-${{ steps.get_version.outputs.VERSION }}-x86_64.rpm signmykey-rpm/ + - name: Commit and push deb file + run: | + cd apt-repo + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add . + git commit -m "Add new deb files" + git push \ No newline at end of file