Skip to content

Commit 276a260

Browse files
committed
feat(debian): add publish job
1 parent a818db8 commit 276a260

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/debian.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,36 @@ jobs:
159159
with:
160160
name: signed-artifacts-apt
161161
path: cdn/apt
162+
163+
publish:
164+
needs: debian-sign
165+
#FIXME: uncoment when process is validated
166+
#if: startsWith(github.ref, 'refs/tags/v')
167+
runs-on: ubuntu-24.04
168+
permissions:
169+
contents: write
170+
steps:
171+
- name: Checkout gh-pages
172+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
173+
with:
174+
ref: gh-pages
175+
176+
- name: Download signed archives
177+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
178+
with:
179+
name: signed-artifacts-apt
180+
path: incoming/
181+
182+
- name: Update site
183+
run: |
184+
cp -vf incoming/stable/* apt/stable/
185+
ls -l apt/stable/
186+
187+
- name: Push to gh-pages
188+
run: |
189+
cd apt/stable/
190+
git config user.name "github-actions[bot]"
191+
git config user.email "github-actions[bot]@users.noreply.github.com"
192+
git add -A .
193+
git diff --staged --quiet || git commit -m "Publish ${{ github.ref_name }}"
194+
git push

0 commit comments

Comments
 (0)