mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-12 04:23:03 +02:00
Merge pull request #1049 from jesseduffield/cd-update-ppa
workflows: update PPA repo as part of CD process
This commit is contained in:
commit
dac3978983
17
.github/workflows/cd.yml
vendored
17
.github/workflows/cd.yml
vendored
@ -26,3 +26,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{secrets.GITHUB_API_TOKEN}}
|
token: ${{secrets.GITHUB_API_TOKEN}}
|
||||||
formula: lazygit
|
formula: lazygit
|
||||||
|
- name: Checkout PPA repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: dawidd6/lazygit-debian
|
||||||
|
token: ${{secrets.GITHUB_API_TOKEN}}
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Update PPA repo
|
||||||
|
run: |
|
||||||
|
version="$(echo "$GITHUB_REF" | sed 's@refs/tags/v@@')"
|
||||||
|
sudo apt install -y git-buildpackage
|
||||||
|
git fetch --tags https://github.com/$GITHUB_REPOSITORY
|
||||||
|
gbp import-ref -u "$version"
|
||||||
|
gbp dch -D xenial -N "$version"-1
|
||||||
|
git add debian/changelog
|
||||||
|
git commit -S -m "d/changelog: dch $version"
|
||||||
|
gbp tag
|
||||||
|
git push --tags origin master
|
||||||
|
Loading…
Reference in New Issue
Block a user