-
-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rework publish ppa workflow
- Loading branch information
1 parent
66757f4
commit 99e7677
Showing
1 changed file
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,29 @@ jobs: | |
name: Publish PPA | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: yuezk/[email protected] | ||
- name: Import gpg key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
repository: 'ppa:flexiondotorg/quickemu' | ||
gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }} | ||
gpg_passphrase: ${{ secrets.PPA_GPG_PASSPHRASE }} | ||
pkgdir: '${{ github.workspace }}' | ||
passphrase: ${{ secrets.PPA_GPG_PASSPHRASE }} | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get -y update | ||
sudo apt-get -y install debhelper-compat distro-info dput devscripts | ||
- name: Publish to PPA | ||
env: | ||
DEBEMAIL: ${{ secrets.DEBEMAIL }} | ||
DEBFULLNAME: ${{ secrets.DEBFULLNAME }} | ||
run: | | ||
REL_VER=$(grep "^readonly VERSION" quickemu | cut -d'"' -f2) | ||
STAMP=$(date +%y%j.%H%M) | ||
for CODENAME in $(distro-info --supported); do | ||
rm debian/changelog | ||
dch --package quickemu --newversion="${REL_VER}-1~${CODENAME}${STAMP}" --distribution=${CODENAME} "New upstream release." --create | ||
dpkg-buildpackage -d -S -sa | ||
dput ppa:flexiondotorg/quickemu ../quickemu_${REL_VER}-1~${CODENAME}${STAMP}_source.changes | ||
done |