Skip to content

Commit

Permalink
Move APT repository to GH Pages (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-ruth authored Jun 6, 2023
1 parent 3546c8e commit 07e3fb0
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 07e3fb0

Please sign in to comment.