Skip to content

Commit 33f4b2f

Browse files
committed
publish to odio-apt-repo
1 parent 59f762b commit 33f4b2f

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,24 @@ jobs:
156156
files: dist/*
157157
generate_release_notes: true
158158
prerelease: ${{ contains(github.ref_name, '-rc') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-alpha') }}
159+
160+
# Add this job at the end of your existing release workflow in
161+
# go-odio-api and go-mpd-discplayer (.github/workflows/build.yml)
162+
#
163+
# It triggers the apt-repo rebuild after a successful release.
164+
165+
notify-apt-repo:
166+
name: Trigger APT repo update
167+
needs: release
168+
runs-on: ubuntu-latest
169+
if: startsWith(github.ref, 'refs/tags/v')
170+
permissions: {}
171+
172+
steps:
173+
- name: Trigger apt-repo rebuild
174+
uses: peter-evans/repository-dispatch@v3
175+
with:
176+
token: ${{ secrets.APT_REPO_TOKEN }}
177+
repository: b0bbywan/odio-apt-repo
178+
event-type: release-published
179+
client-payload: '{"repo": "${{ github.repository }}", "tag": "${{ github.ref_name }}"}'

0 commit comments

Comments
 (0)