Skip to content

Commit

Permalink
feat: add publish tenv to PPA
Browse files Browse the repository at this point in the history
  • Loading branch information
kvendingoldo committed Jun 5, 2024
1 parent a3de1b4 commit ea91aee
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: "Chocolatey Release Pipeline"
name: "Publish release: Chocolatey"

on:
release:
types: [released]

jobs:
build:
release:
runs-on: ubuntu-latest

steps:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/publish-ppa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: "Publish release: PPA"

on:
release:
types: [released]

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Update chocolatey checksums
run: |
echo "[INFO] Wait until all artefacts will be uploaded"
sleep 300
release_tag=${{ github.event.release.tag_name }}
release_version="${release_tag#v}"
mkdir -p /tmp/tenv
echo "[INFO] Download release's tarballs"
curl \
-SsL \
-o /tmp/tenv/tenv_${release_tag}_Linux_x86_64.tar.gz \
https://github.com/tofuutils/tenv/releases/download/${release_tag}/tenv_${release_tag}_Linux_x86_64.tar.gz
- name: Publish PPA
uses: yuezk/publish-ppa-package@v2
with:
repository: "ppa:kvendingoldo/tenv"
gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.PPA_GPG_PASSPHRASE }}
tarball: /tmp/tenv*.tar.gz
deb_email: "kvendingoldo@gmail.com"
deb_fullname: "tenv"
File renamed without changes.

0 comments on commit ea91aee

Please sign in to comment.